-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmise.toml
80 lines (64 loc) · 2 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
min_version = "2025.1.14"
[tools]
rust = "stable"
node = "22.12.0"
deno = "1.46.1"
cargo-binstall = "1.10.15"
"npm:lefthook" = "1.8.5"
"npm:@commitlint/config-conventional" = "19.6.0"
"npm:@commitlint/cli" = "19.6.0"
"npm:@commitlint/types" = "19.5.0"
"npm:remark-cli" = "12.0.1"
"npm:remark-validate-links" = "8.0.0"
"npm:remark-lint-no-dead-urls" = "1.1.0"
"cargo:https://github.com/DenisGorbachev/cargo-doc2readme" = "branch:dev"
"cargo:cargo-sort" = "1.0.9"
"cargo:cargo-hack" = "0.6.33"
"cargo:cargo-machete" = "0.7.0"
"cargo:cargo-nextest" = "0.9.72"
"aqua:sclevine/yj" = "5.1.0"
[tasks."build"]
run = "cargo build"
[tasks."fmt"]
run = "cargo fmt --all"
[tasks."lint"]
depends = ["lint:code", "lint:docs"]
[tasks."test"]
depends = ["test:code", "test:docs"]
[tasks."lint:code"]
run = "cargo clippy --all-targets --all-features -- -D warnings"
[tasks."lint:docs"]
run = "mise run remark ."
[tasks."lint:deps"]
run = "cargo machete --with-metadata"
[tasks."test:code"]
run = "cargo nextest run"
[tasks."test:docs"]
run = "cargo test --doc"
[tasks."sort:deps"]
run = "cargo sort"
[tasks."watch"]
run = """
#!/usr/bin/env bash
set -euo pipefail
PWD=$(pwd)
CMD_RAW="nextest run $*"
CMD_NO_WHITESPACE="$(echo -e "${CMD_RAW}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')"
cargo watch --clear --watch "$PWD" --exec "$CMD_NO_WHITESPACE" "$@"
"""
[tasks."check"]
run = "cargo check --all-targets"
[tasks."fix"]
run = "cargo fix --workspace --allow-dirty --allow-staged"
[tasks."gen:readme"]
run = "./README.ts > README.md"
sources = ["README.ts"]
outputs = ["README.md"]
[tasks."remark"]
run = """
#!/usr/bin/env bash
set -euo pipefail
REMARK_VALIDATE_LINKS="$(mise where npm:remark-validate-links)/lib/node_modules/remark-validate-links/index.js"
REMARK_LINT_NO_DEAD_URLS="$(mise where npm:remark-lint-no-dead-urls)/lib/node_modules/remark-lint-no-dead-urls/index.js"
remark --ignore-path .gitignore --ignore-pattern CHANGELOG.md --quiet --frail --no-stdout --use "$REMARK_VALIDATE_LINKS" --use "$REMARK_LINT_NO_DEAD_URLS" "$@"
"""