···1_default:
2 @just --list --unsorted --justfile {{justfile()}}
34-# Run the development server in mprocs
00000000005dev:
6- nix develop --command cargo tauri dev
708dev-android:
9- nix develop -c cargo tauri android dev
1011-# 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}}
1819-# 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}}
2829# Export types from the backend to TypeScript bindings
30[working-directory: 'backend']
31export-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()}}
34+[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
15dev:
16+ cargo tauri dev
1718+# Connect and run on an Android VM/Physical device
19dev-android:
20+ cargo tauri android dev
2122+[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
0027028[working-directory: 'frontend']
29+# Run lint on the frontend
30+check-frontend:
31+ npm run lint
00003233# Export types from the backend to TypeScript bindings
34[working-directory: 'backend']
35export-types:
36+ cargo run --bin export-types ../frontend/src/bindings.ts
37+ prettier --write ../frontend/src/bindings.ts
38