-
Notifications
You must be signed in to change notification settings - Fork 1
/
mise.toml
48 lines (40 loc) · 1.01 KB
/
mise.toml
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
[env]
_.path = "target/debug"
[tasks.ci]
run = [
"cargo build",
"cargo test",
]
[tasks.docs]
dir = "docs"
run = "bun i && exec bun run docs:dev"
[tasks.lint-fix]
run = [
"cargo fmt --all",
"cargo clippy --fix --allow-dirty --allow-staged --all-targets --all-features -- -D warnings",
]
[tasks.build]
run = "cargo build"
[tasks.render]
depends = ["build"]
run = [
"pitchfork usage > pitchfork.usage.kdl",
"rm -rf docs/cli && mkdir -p docs/cli",
"usage g markdown -mf pitchfork.usage.kdl --out-dir docs/cli --url-prefix /cli",
"usage g json -f pitchfork.usage.kdl > docs/cli/commands.json",
"git add pitchfork.usage.kdl docs",
]
[tasks.install-dev]
env = { "PITCHFORK_LOG" = "debug" }
run = [
"cargo install --path . --debug",
"pitchfork sup start -f",
]
[tools]
bun = "latest"
[tasks.pre-commit]
depends = ["render", "lint-fix"]
run = [
"cargo fmt -- $(git diff --name-only --cached | grep '\\.rs$')",
"git -c advice.addEmptyPathspec=false add $(git diff --name-only --cached | grep '\\.rs$')",
]