-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmise.toml
More file actions
66 lines (57 loc) · 1.5 KB
/
Copy pathmise.toml
File metadata and controls
66 lines (57 loc) · 1.5 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
[settings]
lockfile = true
[tools]
deno = "latest"
hk = "latest"
pkl = "latest"
[tasks.install-cli]
description = "Install the CLI"
usage = 'flag "--root <root>"'
run = [
"deno install -A --global --force --config deno.jsonc --name konamate --root \"${usage_root:-$HOME/.deno}\" src/main.ts",
]
[tasks.check]
description = "Check the repository or selected files"
usage = 'arg "[files]..."'
run = '''
if [ -n "${usage_files:-}" ]; then
hk check ${usage_files}
else
hk check --all
fi
'''
[tasks.fix]
description = "Fix the repository or selected files"
usage = 'arg "[files]..."'
run = '''
if [ -n "${usage_files:-}" ]; then
hk fix ${usage_files}
else
hk fix --all
fi
'''
[tasks.setup]
description = "Install repository hooks"
run = "hk install --mise"
[tasks."test:e2e:linux:sdvx"]
description = "Run the live SDVX launch flow"
depends = ["build"]
run = "deno run -A tests/e2e/sdvx.ts"
[tasks.build]
description = "Build the CLI binary"
usage = 'flag "--arch <arch>" default="x86_64-unknown-linux-gnu"'
run = [
"deno compile -A --target ${usage_arch?} -o dist/konamate-${usage_arch?} src/main.ts",
]
[tasks.test]
description = "Run all reproducible checks and build the CLI"
depends = ["check", "build"]
[tasks.prepare-release]
description = "Prepare for release"
usage = 'flag "--version <version>"'
run = [
"deno install",
"printf '\"%s\"\\n' \"${usage_version:?}\" > version.json",
"mise run build --arch=x86_64-unknown-linux-gnu",
"mise run build --arch=aarch64-unknown-linux-gnu",
]