-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
52 lines (38 loc) · 1.11 KB
/
justfile
File metadata and controls
52 lines (38 loc) · 1.11 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
#!/usr/bin/env -S just --justfile
# Set shell configurations
set windows-shell := ["powershell"]
set shell := ["bash", "-cu"]
setup-bininstall:
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
setup:
cargo binstall taplo-cli cargo-release -y
@echo '✅ Setup complete!'
ready:
just fmt
just lint
@echo '✅ All passed!'
fmt:
cargo fmt --all -- --emit=files
taplo fmt **/Cargo.toml
@echo '✅ Format complete!'
lint:
cargo clippy
@echo '✅ Lint complete!'
test:
cargo test
@echo '✅ Test complete!'
review:
cargo insta test --review
@echo '✅ Review complete!'
doc:
cargo doc --no-deps --open
@echo '✅ Doc complete!'
release-patch:
cargo release patch --no-push --no-publish --execute
@echo '✅ Release patch complete!'
release-minor:
cargo release minor --no-push --no-publish --execute
@echo '✅ Release minor complete!'
release-major:
cargo release major --no-push --no-publish --execute
@echo '✅ Release major complete!'