_default: @just --list --unsorted --justfile {{ justfile() }} # Perform setup for the frontend using `npm` [working-directory('frontend')] setup-frontend: npm install --no-fund --no-audit # Run locally dev: cargo tauri dev # Start a frontend server *ON ALL INTERFACES!!!!* [working-directory('frontend')] dev-front: HOST_OVERRIDE="0.0.0.0" npm run dev # Start a webview window *without* running the frontend, only one frontend needs to run at once dev-window: cargo run -p manhunt-app # Format everything fmt: cargo fmt prettier --write . --cache --cache-location .prettiercache --log-level warn just --fmt --unstable # Connect and run on an Android VM/Physical device dev-android: cargo tauri android dev # Run a check on the backend check-rust: cargo fmt --check cargo check cargo clippy --fix --allow-dirty --allow-staged -- -D warnings cargo nextest run # Run lint on the frontend [working-directory('frontend')] check-frontend: npm run lint # Export types from the backend to TypeScript bindings export-types: cargo run --bin export-types frontend/src/bindings.ts prettier --write frontend/src/bindings.ts --config .prettierrc.yaml # Start the signaling server on localhost:3536 [working-directory('manhunt-signaling')] signaling: cargo run 0.0.0.0:3536