Update development scripts and configuration for web UI/desktop app separation
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user