chore: add app:dev / app:bundle npm aliases and document them

Thin aliases for `tauri dev` / `tauri build`; raw `npm run tauri <cmd>` still works.
This commit is contained in:
2026-05-23 15:02:05 +03:00
parent 8c13b4ec97
commit c73339bb4c
2 changed files with 7 additions and 3 deletions

View File

@@ -9,13 +9,15 @@ Tusk is a PostgreSQL database management GUI built with Tauri 2 (Rust backend) a
## Development Commands
```bash
npm run tauri dev # Start full app in dev mode (Vite HMR + Rust backend)
npm run app:dev # Start full app in dev mode (Vite HMR + Rust backend) — alias for `tauri dev`
npm run app:bundle # Build production desktop executable — alias for `tauri build`
npm run dev # Start only the Vite frontend dev server (port 5173)
npm run build # Build frontend (tsc + vite build)
npm run tauri build # Build production desktop executable
npm run lint # ESLint
```
`npm run tauri <cmd>` still works for any raw Tauri CLI subcommand.
Rust backend builds automatically via Tauri when running `npm run tauri dev/build`. To check Rust compilation independently:
```bash
cd src-tauri && cargo check