Skip to content

Commit 8633954

Browse files
authored
migrate from just to mise (#2098)
1 parent 2b7452e commit 8633954

File tree

4 files changed

+40
-35
lines changed

4 files changed

+40
-35
lines changed

docs/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ Some tooling is present as bash scripts in `bin/`.
1717
A lot more is present in `rust-tooling/`,
1818
which should be preferred for anything non-trivial.
1919

20-
There is also a [`justfile`](https://github.com/casey/just)
20+
There is also a [`mise`](https://mise.jdx.dev/) configuration
2121
with a couple useful commands to interact with the repo.
2222
Feel free to extend it.
2323

24-
If you want to run CI tests locally, `just test` will get you quite far.
24+
If you want to run CI tests locally, `mise run test` will get you quite far.
2525

2626
## Excluding tests and adding custom ones
2727

@@ -41,7 +41,7 @@ Please familiarize yourself with the [Exercism documentation about practice exer
4141

4242
[Exercism documentation about practice exercises]: https://exercism.org/docs/building/tracks/practice-exercises
4343

44-
Run `just add-exercise` and you'll be prompted for the minimal
44+
Run `mise run add-exercise` and you'll be prompted for the minimal
4545
information required to generate the exercise stub for you.
4646
After that, jump in the generated exercise and fill in any placeholders you find.
4747
This includes most notably:
@@ -88,7 +88,7 @@ This includes their test suite and user-facing documentation.
8888
Before proposing changes here,
8989
check if they should be made in `problem-specifications` instead.
9090

91-
Run `just update-exercise` to update an exercise.
91+
Run `mise run update-exercise` to update an exercise.
9292
This outsources most work to `configlet sync --update`
9393
and runs the test generator again.
9494

justfile

Lines changed: 0 additions & 30 deletions
This file was deleted.

mise.toml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[tasks.test]
2+
description = "simulate CI locally (WIP)"
3+
run = [
4+
"mise run configlet lint",
5+
"bin/lint_markdown.sh",
6+
"shellcheck bin/*.sh",
7+
"bin/check_exercises.sh",
8+
"CLIPPY=true bin/check_exercises.sh",
9+
"cd rust-tooling && cargo test",
10+
"bin/format_exercises.sh ; git diff --exit-code",
11+
]
12+
13+
[tasks.add-exercise]
14+
depends = "symlink-problem-specifications"
15+
run = "cd rust-tooling/generate; cargo run --quiet --release -- add"
16+
17+
[tasks.update-exercise]
18+
depends = "symlink-problem-specifications"
19+
run = "cd rust-tooling/generate; cargo run --quiet --release -- update"
20+
21+
[tasks.configlet]
22+
depends = "fetch-configlet"
23+
quiet = true
24+
run = "bin/configlet"
25+
26+
[tasks.fetch-configlet]
27+
hide = true
28+
silent = true
29+
run = "[ -f bin/configlet ] || bin/fetch-configlet"
30+
31+
[tasks.symlink-problem-specifications]
32+
hide = true
33+
silent = true
34+
run = "[ -L problem-specifications ] || bin/symlink_problem_specifications.sh"

rust-tooling/generate/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ fn update_exercise(args: UpdateArgs) -> Result<()> {
7171
}
7272

7373
fn make_configlet_generate_what_it_can(slug: &str) -> Result<()> {
74-
let status = std::process::Command::new("just")
74+
let status = std::process::Command::new("mise")
7575
.args([
76+
"run",
7677
"configlet",
7778
"sync",
7879
"--update",

0 commit comments

Comments
 (0)