···11_default:
22 @just --list --unsorted --justfile {{justfile()}}
3344-# Run the development server in mprocs
44+[working-directory: 'frontend']
55+# Perform setup for the frontend using `npm`
66+setup-frontend:
77+ npm install --no-fund --no-audit
88+99+[working-directory: 'backend']
1010+# Perform setup to target Android in the backend
1111+setup-android:
1212+ cargo tauri android init
1313+1414+# Run locally
515dev:
66- nix develop --command cargo tauri dev
1616+ cargo tauri dev
7171818+# Connect and run on an Android VM/Physical device
819dev-android:
99- nix develop -c cargo tauri android dev
2020+ cargo tauri android dev
10211111-# Run a development shell
1212-shell:
1313- nix develop
1414-1515-# Execute a single command within the shell
1616-run *CMD:
1717- nix develop --command {{CMD}}
2222+[working-directory: 'backend']
2323+# Run a check on the backend
2424+check-backend:
2525+ cargo check
2626+ cargo clippy --fix --allow-dirty --allow-staged -- -D warnings
18271919-# Run an npm command within frontend
2028[working-directory: 'frontend']
2121-npm *CMD:
2222- nix develop --command npm {{CMD}}
2323-2424-# Run a cargo command within backend
2525-[working-directory: 'backend']
2626-cargo *CMD:
2727- nix develop --command cargo {{CMD}}
2929+# Run lint on the frontend
3030+check-frontend:
3131+ npm run lint
28322933# Export types from the backend to TypeScript bindings
3034[working-directory: 'backend']
3135export-types:
3232- nix develop --command cargo run --bin export-types ../frontend/src/bindings.ts
3333- nix develop --command prettier --write ../frontend/src/bindings.ts
3636+ cargo run --bin export-types ../frontend/src/bindings.ts
3737+ prettier --write ../frontend/src/bindings.ts
3438