Add script for running Electron in development mode and update package.json and main.cjs accordingly

This commit is contained in:
2026-03-20 09:15:14 +01:00
parent 63b164dafc
commit f76474280d
3 changed files with 74 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
"dev": "concurrently -k \"npm:dev:backend\" \"npm:dev:renderer\" \"npm:dev:electron\"",
"dev:backend": "node scripts/run-backend.cjs",
"dev:renderer": "vite --port 5173 --strictPort",
"dev:electron": "wait-on http://localhost:5173 tcp:8000 && cross-env VITE_DEV_SERVER_URL=http://localhost:5173 electron .",
"dev:electron": "node scripts/run-electron-dev.cjs",
"build": "vite build",
"start": "electron ."
},