From c73339bb4c8aeb6efc1872373b9e944c9f32a2c6 Mon Sep 17 00:00:00 2001 From: Aleksey Shakhmatov Date: Sat, 23 May 2026 15:02:05 +0300 Subject: [PATCH] chore: add app:dev / app:bundle npm aliases and document them Thin aliases for `tauri dev` / `tauri build`; raw `npm run tauri ` still works. --- CLAUDE.md | 6 ++++-- package.json | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 016dd1e..a82386a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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 ` 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 diff --git a/package.json b/package.json index 07fd712..6ed815a 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "preview": "vite preview", "test": "vitest run", "test:watch": "vitest", - "tauri": "tauri" + "tauri": "tauri", + "app:dev": "tauri dev", + "app:bundle": "tauri build" }, "dependencies": { "@codemirror/lang-sql": "^6.10.0",