chore(justfile): move backend-related justfile to backend dir

This commit is contained in:
2026-05-14 21:31:05 +02:00
parent 3d4de5cd8b
commit f37e85a459
3 changed files with 71 additions and 48 deletions

52
backend/justfile Normal file
View File

@@ -0,0 +1,52 @@
default: run
run:
cargo run
run-release:
cargo run --release
format:
cargo fmt --all
format-check:
cargo fmt --check --all
audit:
cargo deny check
build:
cargo build
build-release:
cargo build --release
lint:
cargo clippy --all-targets
release-build:
cargo build --release
release-run:
cargo run --release
[env("SQLX_OFFLINE", "1")]
test:
cargo test --all --all-targets
test-hardware:
cargo test --all --all-targets -- --ignored
coverage:
mkdir -p coverage
cargo tarpaulin --config .tarpaulin.local.toml
coverage-ci:
mkdir -p coverage
cargo tarpaulin --config .tarpaulin.ci.toml
check-all: format-check lint coverage audit
## Local Variables:
## mode: makefile
## End:

17
frontend.just Normal file
View File

@@ -0,0 +1,17 @@
default: run
run:
pnpm run dev
build:
pnpm run build
preview:
pnpm run preview
sync:
pnpm run "generate:api"
## Local Variables:
## mode: makefile
## End:

View File

@@ -1,51 +1,5 @@
default: run
run:
cargo run
run-release:
cargo run --release
format:
cargo fmt --all
format-check:
cargo fmt --check --all
audit:
cargo deny check
build:
cargo build
build-release:
cargo build --release
lint:
cargo clippy --all-targets
release-build:
cargo build --release
release-run:
cargo run --release
[env("SQLX_OFFLINE", "1")]
test:
cargo test --all --all-targets
test-hardware:
cargo test --all --all-targets -- --ignored
coverage:
mkdir -p coverage
cargo tarpaulin --config backend/.tarpaulin.local.toml
coverage-ci:
mkdir -p coverage
cargo tarpaulin --config backend/.tarpaulin.ci.toml
check-all: format-check lint coverage audit
mod backend
mod frontend
## Local Variables:
## mode: makefile