nigig-org/crates/apps/theming/Justfile
2026-07-26 19:38:26 +03:00

50 lines
933 B
Makefile

# Default recipes
default:
@just --list
# Build and run the desktop app (debug)
run:
cargo run
# Build and run the desktop app (release)
run-release:
cargo run --release
# Type-check without producing a binary
check:
cargo check --all-targets
# Run unit tests
test:
cargo test --all
# Format the codebase
fmt:
cargo fmt --all
# Verify formatting is clean (CI uses this)
fmt-check:
cargo fmt --all -- --check
# Run clippy with warnings as errors
clippy:
cargo clippy --all-targets -- -D warnings
# Clean build artifacts
clean:
cargo clean
# Build a distributable zip of the project (excludes target/)
zip:
@cd .. && zip -r theming.zip theming \
-x "theming/target/*" \
-x "theming/.makepad/*" \
-x "theming/live_cache/*" \
-x "theming/.git/*"
@echo "Built ../theming.zip"
# One-shot: fmt + clippy + test (what CI runs)
ci: fmt-check clippy test