-
Notifications
You must be signed in to change notification settings - Fork 0
/
mise.toml
211 lines (178 loc) · 4.78 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# ref: https://mise.jdx.dev/configuration.html
#:schema https://mise.jdx.dev/schema/mise.json
min_version = "2024.11.6"
[tools]
bun = "1.1.34"
node = "23.2.0"
# cspell:ignore datasource binstall
# renovate: datasource=crate
cargo-binstall = "1.10.11"
"npm:@biomejs/biome" = "1.9.4"
actionlint = "1.7.4"
# renovate: extractVersion=^v(?<version>.+)
"ubi:suzuki-shunsuke/ghalint" = "1.0.0" # cspell:ignore shunsuke
# renovate: extractVersion=^v(?<version>.+)
"ubi:suzuki-shunsuke/pinact" = "1.0.0"
# cspell:ignore tamasfe
# renovate: packageName=tamasfe/taplo
taplo = "0.9.3"
"npm:prettier" = "3.3.3"
markdownlint-cli2 = "0.15.0"
shfmt = "3.10.0"
shellcheck = "0.10.0"
yamlfmt = "0.14.0"
yamllint = "1.35.1"
"npm:renovate" = "39.10.0"
"npm:cspell" = "8.16.0"
"cargo:lychee" = "0.17.0"
typos = "1.27.3"
[settings]
experimental = true
[settings.npm]
bun = true
[tasks.commit]
depends = ["buni:root"]
run = ["git add .", "bun run git-cz"]
[tasks."commit:staged"]
depends = ["buni:root"]
run = "bun run git-cz"
[tasks.check]
depends = [
"check:*", # lint and/or fix formatting
"lint:*", # lint only
]
[tasks.ci]
depends = [
"ci:*", # lint and/or check formatting
"lint:*", # lint only
]
hide = true
[tasks."check:biome"]
run = "biome check --write --error-on-warnings"
[tasks."ci:biome"]
run = "biome ci --error-on-warnings"
hide = true
[tasks."check:tsc"]
depends = ["buni"]
run = [
"bun run tsc",
"bun run --cwd worker tsc --project tsconfig.base.json",
"bun run --cwd worker tsc --project tsconfig.src.json",
"bun run --cwd worker tsc --project tsconfig.test.json",
]
[tasks."ci:tsc"]
depends = ["buni"]
run = [
"bun run tsc --incremental false",
"bun run --cwd worker tsc --project tsconfig.base.json --incremental false",
"bun run --cwd worker tsc --project tsconfig.src.json --incremental false",
"bun run --cwd worker tsc --project tsconfig.test.json --incremental false",
]
hide = true
[tasks."lint:jsonschema"]
depends = ["buni:root"]
run = "bun run scripts/validate-json-schema.ts"
alias = "check:jsonschema"
[tasks."lint:actionlint"]
run = "actionlint -color"
alias = "check:actionlint"
# SC2312: check-extra-masked-returns
# pipefail is set by shell: bash in GitHub Actions but cannot be detected by shellcheck
# ref: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell
env = { "SHELLCHECK_OPTS" = "--enable=all --exclude=SC2312" }
[tasks."lint:ghalint"]
run = "ghalint run"
alias = "check:ghalint"
[tasks."check:pinact"]
run = "pinact run --verify"
[tasks."ci:pinact"]
depends = ["check:pinact"]
run = "mise run util:nodiff"
hide = true
[tasks."check:taplo"]
# schema of wrangler.toml is in node_modules
depends = ["buni:worker"]
run = ["taplo lint", "taplo fmt"]
[tasks."ci:taplo"]
depends = ["buni:worker"]
run = ["taplo lint", "taplo fmt --check --diff"]
hide = true
[tasks."check:prettier"]
run = "prettier --write --cache ."
[tasks."ci:prettier"]
run = "prettier --check ."
hide = true
[tasks."check:markdownlint"]
run = "markdownlint-cli2 --fix"
[tasks."ci:markdownlint"]
run = "markdownlint-cli2"
hide = true
[tasks."check:shfmt"]
run = "shfmt --list --write --simplify . **/.bashrc"
[tasks."ci:shfmt"]
run = "shfmt --diff --simplify . **/.bashrc"
hide = true
[tasks."lint:shellcheck"]
run = "shellcheck --external-sources **/*.sh **/.bashrc"
alias = "check:shellcheck"
[tasks."check:yamlfmt"]
run = "yamlfmt ."
[tasks."ci:yamlfmt"]
run = "yamlfmt -lint ."
hide = true
[tasks."lint:yamllint"]
run = "yamllint --strict ."
alias = "check:yamllint"
[tasks."lint:renovate"]
run = "renovate-config-validator --strict"
alias = "check:renovate"
[tasks."check:cspell"]
run = "cspell --cache \"**/*\""
[tasks."ci:cspell"]
run = "cspell \"**/*\""
hide = true
[tasks."check:lychee"]
run = "lychee --cache \"**/*\""
[tasks."ci:lychee"]
run = "lychee --verbose \"**/*\""
hide = true
[tasks."check:typos"]
run = "typos --write-changes"
[tasks."ci:typos"]
run = "typos"
hide = true
[tasks."check:ignore-sync"]
depends = ["buni:root"]
run = "bun run ignore-sync ."
[tasks."ci:ignore-sync"]
depends = ["check:ignore-sync"]
run = "mise run util:nodiff"
hide = true
[tasks."worker:dev"]
depends = ["buni:worker"]
dir = "worker"
run = "bun run wrangler dev $(mise run worker:wrangler-args)"
[tasks."worker:test"]
depends = ["buni:worker"]
run = "bun run vitest watch --ui"
dir = "worker"
[tasks."worker:test:ci"]
depends = ["buni:worker"]
run = "bun run vitest run"
dir = "worker"
[tasks."buni"]
depends = ["buni:root", "buni:worker"]
[tasks."buni:root"]
run = "bun install --frozen-lockfile"
hide = true
[tasks."buni:worker"]
run = "bun install --frozen-lockfile"
dir = "worker"
hide = true
[tasks."buni:worker:silent"]
run = "bun install --frozen-lockfile --silent"
dir = "worker"
hide = true
[tasks."util:nodiff"] # cspell:ignore nodiff
run = ["git add .", "git diff --staged --exit-code"]
hide = true