-
Notifications
You must be signed in to change notification settings - Fork 6
/
mise.toml
112 lines (92 loc) · 2.72 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
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
[env]
CARGO_TERM_COLOR = 'always'
_.path = ["./target/debug"]
[tools]
actionlint = "latest"
cargo-binstall = "1"
gh = "latest"
"cargo:cargo-edit" = "latest"
"cargo:cargo-insta" = "latest"
"cargo:cargo-release" = "latest"
"cargo:git-cliff" = "latest"
"npm:prettier" = "latest"
shellcheck = "latest"
[tasks.autofix]
depends = ["render", "lint-fix", "snapshots"]
[tasks.build]
sources = ['{cli/,}src/**/*.rs', '{cli/,}Cargo.toml']
outputs = ['target/debug/rtx']
run = 'cargo build --all'
[tasks.cli]
alias = ['x']
depends = ['build']
run = 'usage'
raw = true
[tasks.complete-word]
alias = ['cw']
depends = ['build']
run = 'usage cw'
raw = true
[tasks.run-example]
depends = ['build']
run = './examples/example.sh'
raw = true
[tasks.complete_fish]
depends = ['build']
run = 'usage g completion fish -f examples/example.sh > ~/.config/fish/completions/ex.fish'
raw = true
[tasks."docs:dev"]
alias = "docs"
dir = 'docs'
run = 'npm run docs:dev'
[tasks.test]
alias = 't'
run = 'cargo test --all --all-features'
[tasks.lint]
depends = ['lint:*']
[tasks."lint:actionlint"]
run = 'actionlint'
[tasks."lint:prettier"]
run = "prettier -c ."
[tasks."lint:clippy"]
run = 'cargo clippy --all --all-features -- -D warnings'
[tasks."lint:fmt"]
run = 'cargo fmt --all -- --check'
[tasks.lint-fix]
run = [
'cargo clippy --all --all-features --fix --allow-dirty --allow-staged -- -D warnings',
'cargo fmt --all',
'prettier -w .',
]
[tasks.ci]
depends = ['test', 'lint']
[tasks.pre-commit]
depends = ['render', 'snapshots']
[tasks.render]
depends = ['render:*']
[tasks."render:usage-cli-completions"]
depends = ['build']
run = [
'usage --usage-spec > cli/usage.usage.kdl',
'rm -rf docs/cli/reference && mkdir -p docs/cli/reference',
'usage g json -f cli/usage.usage.kdl > docs/cli/reference/commands.json',
'usage g md -mf cli/usage.usage.kdl --out-dir docs/cli/reference --url-prefix /cli/reference --replace-pre-with-code-fences',
'usage g completion bash usage --usage-cmd "usage --usage-spec" > cli/assets/completions/usage.bash',
'usage g completion fish usage --usage-cmd "usage --usage-spec" > cli/assets/completions/usage.fish',
'usage g completion zsh usage --usage-cmd "usage --usage-spec" > cli/assets/completions/_usage',
'mise run lint-fix',
]
[tasks."render:example-md"]
depends = ['build']
run = [
"usage g md -f examples/mise.usage.kdl --out-file examples/docs/MISE_INLINE.md --replace-pre-with-code-fences",
"usage g md -f examples/mise.usage.kdl --out-file examples/docs/MISE_MULTI.md --replace-pre-with-code-fences",
]
[tasks.release]
run = "cargo release --workspace"
[tasks.snapshots]
run = "cargo insta test --accept"
[task_config]
includes = ['tasks']
[tasks.install-dev]
run = "cargo install --path cli --debug"