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"