-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
131 lines (108 loc) · 2.58 KB
/
Taskfile.yml
File metadata and controls
131 lines (108 loc) · 2.58 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
version: "3"
tasks:
default:
desc: Show available tasks
cmds:
- task --list
# === Development ===
dev:
desc: Run CLI in watch mode
cmds:
- bun run dev
build:
desc: Build library and CLI
cmds:
- bun run build
build:binary:
desc: Build standalone binary
cmds:
- bun run build:binary
# === Quality Checks ===
ci:
desc: Run all CI checks (run before marking any task complete)
cmds:
- task: typecheck
- task: lint:fix
- task: check-ignores
- task: duplication
- task: file-length
- task: check-embeddings
- task: knip
- task: test
- task: test:e2e
lint:
desc: Run Biome linter (check only)
cmds:
- bun run lint
lint:fix:
desc: Run Biome linter and auto-fix issues
cmds:
- bun run lint:fix
format:
desc: Format code with Biome
cmds:
- bun run format
typecheck:
desc: TypeScript type checking
cmds:
- bun run typecheck
duplication:
desc: Check for code duplication
cmds:
- bun run duplication
knip:
desc: Check for dead code (unused exports, dependencies, files)
cmds:
- bun run knip
file-length:
desc: Check file length limits
cmds:
- ./scripts/check_file_length.sh
check-ignores:
desc: Check for biome-ignore comments (zero tolerance)
cmds:
- ./scripts/check-ignores.sh
check-embeddings:
desc: Verify all query strings have pre-computed embeddings
cmds:
- bun scripts/check-query-embeddings.ts
generate-embeddings:
desc: Generate embeddings for all query strings (requires OPENAI_API_KEY)
cmds:
- bun scripts/generate-query-embeddings.ts
# === Testing ===
test:
desc: Run unit tests
cmds:
- bun run test
test:watch:
desc: Run tests in watch mode
cmds:
- bun run test:watch
test:cov:
desc: Run tests with coverage
cmds:
- bun run test:coverage
test:e2e:
desc: Run CLI E2E tests (pass file pattern as CLI_ARGS)
cmds:
- bun run vitest run --config src/cli/e2e/vitest.config.ts {{.CLI_ARGS | default "src/cli/e2e/"}}
# === Git Hooks ===
hooks:install:
desc: Install git hooks with lefthook
cmds:
- bunx lefthook install
hooks:run:
desc: Run pre-commit hooks manually
cmds:
- bunx lefthook run pre-commit
# === Utilities ===
clean:
desc: Clean build artifacts
cmds:
- rm -rf dist node_modules/.cache coverage
deps:update:
desc: Update all dependencies
cmds:
- bunx npm-check-updates -u
- bun install