-
Notifications
You must be signed in to change notification settings - Fork 13
/
justfile
46 lines (37 loc) · 1013 Bytes
/
justfile
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
#!/usr/bin/env -S just --justfile
# https://github.com/oxc-project/oxc/blob/main/justfile
_default:
just --list -u
alias r := ready
alias c := codecov
alias t := test
# Initialize the project by installing all the necessary tools.
# Make sure you have cargo-binstall installed.
# You can download the pre-compiled binary from <https://github.com/cargo-bins/cargo-binstall#installation>
# or install via `cargo install cargo-binstall`
init:
cargo binstall cargo-nextest cargo-watch cargo-insta cargo-edit typos-cli taplo-cli cargo-llvm-cov -y
# When ready, run the same CI commands
ready:
typos
just fmt
just check
just test
just lint
git status
# Format all files
fmt:
cargo fmt
taplo format
# Run cargo check
check:
cargo check --workspace --all-targets --all-features --locked
# Run all the tests
test:
cargo nextest run
# Lint the whole project
lint:
cargo clippy --workspace --all-targets --all-features -- --deny warnings
# Get code coverage
codecov:
cargo codecov --html