chore: organize justfiles

main
Jef Roosens 2025-05-17 20:10:23 +02:00
parent 6a8725489e
commit e8a92d7e07
No known key found for this signature in database
GPG Key ID: 21FD3D77D56BAF49
4 changed files with 50 additions and 27 deletions

1
.gitignore vendored
View File

@ -20,3 +20,4 @@ target/
# testing files # testing files
*.jar *.jar
data*/ data*/
*.log

View File

@ -1,35 +1,25 @@
[group('build')] build:
build pkg: cargo build --frozen --workspace
cargo build --package {{ pkg }}
alias b := build alias b := build
[group('build')] test:
build-all: cargo test --frozen --workspace
cargo build --workspace
alias ba := build-all
[group('test')]
test pkg:
cargo test --package {{ pkg }}
alias t := test alias t := test
[group('test')] check:
test-all: cargo fmt --check --all
cargo test --workspace cargo clippy \
alias ta := test-all --frozen \
--all -- \
[group('check')]
check pkg:
cargo fmt --check --package {{ pkg }}
cargo clippy --package {{ pkg }} -- \
--no-deps \ --no-deps \
--deny 'clippy::all' --deny 'clippy::all'
alias c := check alias c := check
[group('check')] fetch:
check-all: cargo fetch --locked
cargo fmt --check --all
cargo clippy --all -- \ clean:
--no-deps \ cargo clean
--deny 'clippy::all'
alias ca := check-all doc:
cargo doc --workspace --frozen

16
alex/Justfile 100644
View File

@ -0,0 +1,16 @@
build:
cargo build --frozen
alias b := build
test:
cargo test --frozen
alias t := test
check:
cargo fmt --check
cargo clippy \
--frozen \
-- \
--no-deps \
--deny 'clippy::all'
alias c := check

16
backup/Justfile 100644
View File

@ -0,0 +1,16 @@
build:
cargo build --frozen
alias b := build
test:
cargo test --frozen
alias t := test
check:
cargo fmt --check
cargo clippy \
--frozen \
-- \
--no-deps \
--deny 'clippy::all'
alias c := check