-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmise.toml
More file actions
104 lines (79 loc) · 3.88 KB
/
mise.toml
File metadata and controls
104 lines (79 loc) · 3.88 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
[tasks.audit-protocol]
description = "Audit runtime protocol invariants (V2-only host lane)"
run = "pnpm exec vitest run src/lib/__tests__/protocol-contract.test.ts src/lib/__tests__/runtimeService.protocol.test.ts"
[tasks.build]
description = "Build the frontend"
run = "pnpm exec vite build"
[tasks.check]
description = "Fast local gate (auto-format + lint + compile + fast tests)"
run = "mise run format && mise run lint && mise run compile && mise run test"
[tasks.check-ci]
description = "Fast CI gate (format-check + lint + compile + fast tests)"
run = "mise run format-check && mise run lint && mise run compile && mise run test"
[tasks.check-full]
description = "Full gate (check + live runtime regressions)"
run = "mise run check && mise run test-regressions"
[tasks.clean]
description = "Remove build artifacts"
run = "rm -rf .svelte-kit build dist package coverage src-tauri/target target node_modules/.vite"
[tasks.clean-deep]
description = "Remove build artifacts + node_modules"
run = "mise run clean && rm -rf node_modules"
[tasks.compile]
description = "Typecheck (svelte-check)"
run = "pnpm exec svelte-kit sync && pnpm exec svelte-check --tsconfig ./tsconfig.json"
[tasks.dev]
description = "Run Vite dev server"
run = "pnpm exec vite dev"
[tasks.format]
description = "Format code (Biome + dprint + rustfmt)"
run = "pnpm exec biome format --write src src-tauri/tauri.conf.json src-tauri/capabilities/default.json package.json components.json svelte.config.js vite.config.js tailwind.config.ts tsconfig.json biome.json dprint.json && pnpm exec dprint fmt && cargo fmt --manifest-path src-tauri/Cargo.toml"
[tasks.format-check]
description = "Verify formatting (Biome + dprint + rustfmt)"
run = "pnpm exec biome format src src-tauri/tauri.conf.json src-tauri/capabilities/default.json package.json components.json svelte.config.js vite.config.js tailwind.config.ts tsconfig.json biome.json dprint.json && pnpm exec dprint check && cargo fmt --manifest-path src-tauri/Cargo.toml -- --check"
[tasks.icons]
description = "Regenerate app icons from assets/logo.svg"
run = "pnpm exec tauri icon assets/logo.svg --output src-tauri/icons"
[tasks.install-git-hooks]
description = "Install repo git hooks (pre-commit + pre-push)"
run = "./scripts/git-hooks/install.sh"
[tasks.lint]
description = "Lint code (oxlint + clippy)"
run = "pnpm exec oxlint --tsconfig tsconfig.json src && cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warnings"
[tasks.preview]
description = "Preview the build"
run = "pnpm exec vite preview"
[tasks.reset]
description = "Deep clean + setup"
run = "mise run clean-deep && mise run setup"
[tasks.runtime-clean]
description = "Remove runtime artifacts"
run = "rm -rf tmp/boot tmp/runtime-* tmp/initramfs-* tmp/apk-cache \"$HOME/Library/Application Support/com.pi.work/runtime\""
[tasks.setup]
description = "Install dependencies and git hooks"
run = "pnpm install && mise run install-git-hooks"
[tasks.tauri-build]
description = "Build the Tauri app"
run = "pnpm exec tauri build"
[tasks.tauri-dev]
description = "Run the Tauri app"
depends = ["runtime-build"]
run = "pnpm exec tauri dev"
[tasks.test]
description = "Run fast tests"
run = "mise run test-vite && mise run test-rust"
[tasks.test-regressions]
description = "Run runtime regression integration tests"
run = "./scripts/testing/run-regressions.sh"
[tasks.test-regressions-if-needed]
description = "Run runtime regressions only when integration-impacting files changed"
run = "./scripts/testing/run-regressions-if-needed.sh"
[tasks.test-rust]
description = "Run Rust tests"
run = "cargo test --manifest-path src-tauri/Cargo.toml --lib --tests"
[tasks.test-scope-negative]
description = "Run scope-negative harness suite"
run = "./scripts/harness/scope-negative.sh"
[tasks.test-vite]
description = "Run fast frontend tests (exclude live integration suite)"
run = "pnpm exec vitest run --exclude src/lib/__tests__/integration/**/*.integration.test.ts"