mirror of
https://github.com/Xevion/banner.git
synced 2025-12-06 01:14:22 -06:00
Add comprehensive ESLint setup with React and TypeScript support, create basic integration tests for the shutdown utilities, and enhance the Justfile with a new check command that runs all validation steps (cargo check, clippy, tests, and linting).
38 lines
1022 B
Makefile
38 lines
1022 B
Makefile
default_services := "bot,web,scraper"
|
|
|
|
default:
|
|
just --list
|
|
|
|
check:
|
|
cargo check
|
|
cargo clippy
|
|
cargo nextest run
|
|
pnpm run -C web lint
|
|
|
|
# Auto-reloading frontend server
|
|
frontend:
|
|
pnpm run -C web dev
|
|
|
|
# Production build of frontend
|
|
build-frontend:
|
|
pnpm run -C web build
|
|
|
|
# Auto-reloading backend server
|
|
backend *ARGS:
|
|
bacon --headless run -- -- {{ARGS}}
|
|
|
|
# Production build
|
|
build:
|
|
pnpm run -C web build
|
|
cargo build --release --bin banner
|
|
|
|
# Run auto-reloading development build with release characteristics (frontend is embedded, non-auto-reloading)
|
|
# This is useful for testing backend release-mode details.
|
|
dev-build *ARGS='--services web --tracing pretty': build-frontend
|
|
bacon --headless run -- --profile dev-release -- {{ARGS}}
|
|
|
|
# Auto-reloading development build for both frontend and backend
|
|
# Will not notice if either the frontend/backend crashes, but will generally be resistant to stopping on their own.
|
|
[parallel]
|
|
dev *ARGS='--services web,bot': frontend (backend ARGS)
|