meta: set up Just for general maintenance tasks

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I16a6121ab52fbc732a56720f622321496a6a6964
This commit is contained in:
raf 2026-03-22 17:33:57 +03:00
commit f55edcdedd
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
2 changed files with 46 additions and 5 deletions

40
justfile Normal file
View file

@ -0,0 +1,40 @@
# Default recipe to show help
@default:
just --list
# Build all crates
build-all: build-server build-tui build-ui
# Build the server crate
build-server:
cargo build -p pinakes-server
# Build the TUI crate
build-tui:
cargo build -p pinakes-tui
# Build the UI using Dioxus CLI. The UI *has* to be built with `dx`, because CSS
# is not correctly embedded otherwise.
build-ui:
dx build -p pinakes-ui
# Generate REST API documentation using cargo xtask
@docs:
cargo xtask docs
# Run all tests
@test:
cargo nextest run --workspace
# Format code
@fmt:
cargo fmt
# Run clippy linting
@lint:
cargo clippy --workspace
# Clean build artifacts
@clean:
cargo clean
rm -rf target/dx/