Live location tracking and playback for the game "manhunt"

Simplify justfile

bwc9876.dev 7207598e b69803a4

verified
+24 -20
+24 -20
justfile
··· 1 _default: 2 @just --list --unsorted --justfile {{justfile()}} 3 4 - # Run the development server in mprocs 5 dev: 6 - nix develop --command cargo tauri dev 7 8 dev-android: 9 - nix develop -c cargo tauri android dev 10 11 - # Run a development shell 12 - shell: 13 - nix develop 14 - 15 - # Execute a single command within the shell 16 - run *CMD: 17 - nix develop --command {{CMD}} 18 19 - # Run an npm command within frontend 20 [working-directory: 'frontend'] 21 - npm *CMD: 22 - nix develop --command npm {{CMD}} 23 - 24 - # Run a cargo command within backend 25 - [working-directory: 'backend'] 26 - cargo *CMD: 27 - nix develop --command cargo {{CMD}} 28 29 # Export types from the backend to TypeScript bindings 30 [working-directory: 'backend'] 31 export-types: 32 - nix develop --command cargo run --bin export-types ../frontend/src/bindings.ts 33 - nix develop --command prettier --write ../frontend/src/bindings.ts 34
··· 1 _default: 2 @just --list --unsorted --justfile {{justfile()}} 3 4 + [working-directory: 'frontend'] 5 + # Perform setup for the frontend using `npm` 6 + setup-frontend: 7 + npm install --no-fund --no-audit 8 + 9 + [working-directory: 'backend'] 10 + # Perform setup to target Android in the backend 11 + setup-android: 12 + cargo tauri android init 13 + 14 + # Run locally 15 dev: 16 + cargo tauri dev 17 18 + # Connect and run on an Android VM/Physical device 19 dev-android: 20 + cargo tauri android dev 21 22 + [working-directory: 'backend'] 23 + # Run a check on the backend 24 + check-backend: 25 + cargo check 26 + cargo clippy --fix --allow-dirty --allow-staged -- -D warnings 27 28 [working-directory: 'frontend'] 29 + # Run lint on the frontend 30 + check-frontend: 31 + npm run lint 32 33 # Export types from the backend to TypeScript bindings 34 [working-directory: 'backend'] 35 export-types: 36 + cargo run --bin export-types ../frontend/src/bindings.ts 37 + prettier --write ../frontend/src/bindings.ts 38