An easy-to-host PDS on the ATProtocol, MacOS. Grandma-approved.

feat(MM-67): add Justfile with build recipes #5

merged opened by malpercio.dev targeting main from malpercio/mm-67-justfile-with-build-recipes

Adds a justfile with check, build, test, fmt, fmt-check, clippy, run-relay, nix-build, docker-build, and ci recipes. The ci recipe chains fmt-check, clippy, test, and cargo-audit to mirror the CI pipeline.

Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:web:malpercio.dev/sh.tangled.repo.pull/3mglgehw5bc22
+35 -2
Diff #1
+2 -2
CLAUDE.md
··· 14 14 - `nix build .#docker-image --accept-flake-config` - Build Docker image tarball (Linux only; output at `./result`; load with `docker load < result`; `docker-image` is not exposed on macOS — use a remote Linux builder or CI) 15 15 - `cargo build` - Build all crates 16 16 - `cargo test` - Run all tests 17 - - `cargo clippy` - Lint 18 - - `cargo fmt --check` - Check formatting 17 + - `cargo clippy --workspace -- -D warnings` - Lint (warnings as errors) 18 + - `cargo fmt --all --check` - Check formatting 19 19 20 20 ## Dev Environment 21 21 - Managed entirely by Nix flake + devenv; do not install tools globally
+33
justfile
··· 1 + check: 2 + cargo check --workspace 3 + 4 + build: 5 + cargo build --workspace 6 + 7 + test: 8 + cargo test --workspace 9 + 10 + fmt: 11 + cargo fmt --all 12 + 13 + fmt-check: 14 + cargo fmt --all --check 15 + 16 + # Lint all crates; all warnings (Clippy and rustc) are treated as errors 17 + clippy: 18 + cargo clippy --workspace -- -D warnings 19 + 20 + run-relay: 21 + cargo run -p relay 22 + 23 + # Build the relay binary via Nix 24 + nix-build: 25 + nix build .#relay --accept-flake-config 26 + 27 + # Build the Docker image via Nix (Linux only; on macOS use a remote Linux builder or CI) 28 + docker-build: 29 + nix build .#docker-image --accept-flake-config 30 + 31 + # Run the full CI pipeline locally 32 + ci: fmt-check clippy test 33 + cargo audit

History

2 rounds 0 comments
sign up or login to add to the discussion
2 commits
expand
feat(MM-67): add Justfile with build recipes
fix(MM-67): address PR review — fmt-check flag, clippy comment, CLAUDE.md alignment
expand 0 comments
pull request successfully merged
1 commit
expand
feat(MM-67): add Justfile with build recipes
expand 0 comments