-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
35 lines (30 loc) · 922 Bytes
/
Taskfile.yml
File metadata and controls
35 lines (30 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# https://taskfile.dev
version: '3'
vars:
GREETING: Hello, World!
VERSION: '{{.VERSION | default "dev"}}'
CLI_ENTRY: './ts/cli/index.ts'
tasks:
ci:
cmds:
- bun install --frozen-lockfile
- bunx tsc
- bunx biome ci --error-on-warnings
- bun test
- task: update-examples
- |
git diff --exit-code || {
echo "Generated files have changed. Please commit the changes."
exit 1
}
clean:
desc: Clean build artifacts
cmds:
- rm -rf dist
update-examples:
desc: Update example outputs from the input.yaml file
cmds:
- echo "Regenerating example outputs..."
- bun ts/cli/index.ts --input examples/input.yaml --output-file examples/single-file-output.md
- bun ts/cli/index.ts --input examples/input.yaml --output-directory examples/per-kind-output
- echo "✅ Example outputs updated successfully!"