diff --git a/backend/justfile b/backend/justfile new file mode 100644 index 0000000..b2180a4 --- /dev/null +++ b/backend/justfile @@ -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: diff --git a/frontend.just b/frontend.just new file mode 100644 index 0000000..49a4b0d --- /dev/null +++ b/frontend.just @@ -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: diff --git a/justfile b/justfile index ea24534..e98b9c3 100644 --- a/justfile +++ b/justfile @@ -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