Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I16a6121ab52fbc732a56720f622321496a6a6964
40 lines
699 B
Makefile
40 lines
699 B
Makefile
# 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/
|