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 ## Development Commands
```bash ```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 dev # Start only the Vite frontend dev server (port 5173)
npm run build # Build frontend (tsc + vite build) npm run build # Build frontend (tsc + vite build)
npm run tauri build # Build production desktop executable
npm run lint # ESLint 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: Rust backend builds automatically via Tauri when running `npm run tauri dev/build`. To check Rust compilation independently:
```bash ```bash
cd src-tauri && cargo check cd src-tauri && cargo check

View File

@@ -10,7 +10,9 @@
"preview": "vite preview", "preview": "vite preview",
"test": "vitest run", "test": "vitest run",
"test:watch": "vitest", "test:watch": "vitest",
"tauri": "tauri" "tauri": "tauri",
"app:dev": "tauri dev",
"app:bundle": "tauri build"
}, },
"dependencies": { "dependencies": {
"@codemirror/lang-sql": "^6.10.0", "@codemirror/lang-sql": "^6.10.0",