Live location tracking and playback for the game "manhunt"
1_default:
2 @just --list --unsorted --justfile {{ justfile() }}
3
4# Perform setup for the frontend using `npm`
5[working-directory('frontend')]
6setup-frontend:
7 npm install --no-fund --no-audit
8
9# Run locally
10dev:
11 cargo tauri dev
12
13# Format everything
14fmt:
15 cargo fmt
16 prettier --write . --cache --cache-location .prettiercache --log-level warn
17 just --fmt --unstable
18
19# Connect and run on an Android VM/Physical device
20dev-android:
21 cargo tauri android dev
22
23# Run a check on the backend
24[working-directory('backend')]
25check-backend:
26 cargo fmt --check
27 cargo check
28 cargo clippy --fix --allow-dirty --allow-staged -- -D warnings
29
30[working-directory('manhunt-signaling')]
31check-signaling:
32 cargo fmt --check
33 cargo check
34 cargo clippy --fix --allow-dirty --allow-staged -- -D warnings
35
36# Run lint on the frontend
37[working-directory('frontend')]
38check-frontend:
39 npm run lint
40
41# Export types from the backend to TypeScript bindings
42[working-directory('backend')]
43export-types:
44 cargo run --bin export-types ../frontend/src/bindings.ts
45 prettier --write ../frontend/src/bindings.ts --config ../.prettierrc.yaml
46
47# Start the signaling server on localhost:3536
48[working-directory('manhunt-signaling')]
49signaling:
50 cargo run 0.0.0.0:3536