From 2fab5e6d1d7d9add0adb30a19ce17e284d7b9a20 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 7 May 2026 20:18:39 +0200 Subject: [PATCH] Update development scripts and configuration for web UI/desktop app separation --- README.md | 6 +++--- package.json | 4 +++- src-tauri/tauri.conf.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a04e086..4ed076b 100644 --- a/README.md +++ b/README.md @@ -51,16 +51,16 @@ ollama serve ## Development -Run the web UI only: +Run the desktop app: ```bash npm run dev ``` -Run the desktop app: +Run the web UI in a browser: ```bash -npm run tauri dev +npm run dev:web ``` Build the frontend: diff --git a/package.json b/package.json index ba61930..b06064a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "version": "0.1.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "tauri dev", + "dev:vite": "vite --host 127.0.0.1", + "dev:web": "vite --host 127.0.0.1 --open", "build": "tsc && vite build", "preview": "vite preview", "tauri": "tauri" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 3e0ca27..e8880eb 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -4,7 +4,7 @@ "version": "0.1.0", "identifier": "com.giers.conceptmaker", "build": { - "beforeDevCommand": "npm run dev", + "beforeDevCommand": "npm run dev:vite", "beforeBuildCommand": "npm run build", "devUrl": "http://localhost:5173", "frontendDist": "../dist"