-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mise.toml
116 lines (96 loc) · 3.04 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
#:schema ./schema/mise.json
min_version = "2024.1.1"
[env]
_.file = [".env"]
_.path = ["./target/debug"]
FOO = "bar"
FOO_NUM = 1
THIS_PROJECT = "{{config_root}}-{{cwd}}"
[tools]
#node = 'lts'
tiny = { version = "1", foo = "bar" }
python = { version = "latest" }
shellcheck = "0.10"
shfmt = "3"
jq = "latest"
"cargo:cargo-edit" = "latest"
"cargo:cargo-show" = "latest"
"cargo:git-cliff" = "latest"
"npm:markdownlint-cli" = "0.38"
"npm:prettier" = "3"
direnv = "latest"
actionlint = "latest"
#python = { version = "latest", virtualenv = "{{env.HOME}}/.cache/venv" }
#ruby = "3.1"
[plugins]
nnnn = 'https://github.com/mise-plugins/rtx-nodejs#main'
[alias.tiny]
abc = '1'
[tasks]
clean = "cargo clean"
release = "cargo release"
signal-test = "node ./test/fixtures/signal-test.js"
ci = { depends = ["format", "build", "test"] }
pre-commit = { depends = ["render", "lint"] }
[tasks.build]
alias = "b"
run = "cargo build --color always --all-features"
#sources = ["Cargo.*", "src/**/*.rs"]
#outputs = ["target/debug/mise"]
[tasks."render:usage"]
depends = ["build"]
env = { CLICOLOR_FORCE = "0" }
run = "mise usage > mise.usage.kdl"
[tasks."render:completions"]
depends = ["build", "render:usage"]
env = { NO_COLOR = "1" }
run = '''
#!/usr/bin/env bash
set -xeuo pipefail
mise completion bash > completions/mise.bash
mise completion zsh > completions/_mise
mise completion fish > completions/mise.fish
'''
[tasks."render:registry"]
depends = ["build"]
run = "./scripts/render-registry.js"
[tasks."render:mangen"]
depends = ["build"]
env = { NO_COLOR = "1" }
run = "mise render-mangen"
[tasks."render:help"]
depends = ["build"]
env = { NO_COLOR = "1" }
run = ["mise render-help", "mise x node@latest -- npx markdown-magic"]
sources = ["mise"]
outputs = ["README.md"]
[tasks.render]
alias = "render"
depends = ["render:*"]
[tasks.snapshots]
description = "update test snapshots"
run = "cargo insta test --accept --unreferenced delete"
[tasks.test]
description = "run all tests"
alias = 't'
run = ["mise tasks run test:unit", "mise tasks run test:e2e"]
[tasks."test:unit"]
description = "run unit tests"
run = "cargo test --all-features"
env = { CARGO_TERM_COLOR = "always", "RUST_TEST_THREADS" = "1" }
[tasks."docker:image"]
description = "build docker image from Dockerfile"
run = 'docker build --build-arg GITHUB_TOKEN=$GITHUB_API_TOKEN $root -f $root/packaging/dev/Dockerfile -t ghcr.io/jdx/mise:dev'
[tasks."docker:run"]
description = "run a command inside of development docker container"
run = 'docker run -ti --rm -e GITHUB_API_TOKEN -e TEST_ALL -v $root:/mise -v /tmp/mise/target:/tmp/mise/target -v /tmp/mise/registry:/tmp/mise/registry -w /mise ghcr.io/jdx/mise:dev'
depends = ["docker:image"]
[tasks."docker:cargo"]
description = "run cargo inside of development docker container"
run = 'mise tasks run docker:run cargo'
[tasks."docker:mise"]
description = "run mise inside of development docker container"
run = "mise tasks run -- docker:cargo run --"
[tasks."docker:e2e"]
description = "run e2e tests inside of development docker container"
run = "mise tasks run docker:mise run test:e2e"