Self-contained desktop dev script with worktree isolation

dev:desktop now launches its own Metro on a random port + Electron,
no dependency on a shared :8081. In worktrees, Electron gets a unique
userData path and dock badge so multiple instances run side-by-side.
This commit is contained in:
Mohamed Boudra
2026-04-10 10:11:55 +07:00
parent 9f09a19a09
commit 201eb6a671
3 changed files with 67 additions and 1 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
"scripts": {
"build": "npm --prefix ../.. run build:daemon && npm run build:main && electron-builder --config electron-builder.yml",
"build:main": "tsc -p tsconfig.json",
"dev": "npm run build:main && wait-on tcp:8081 && electron .",
"dev": "./scripts/dev.sh",
"test": "vitest run",
"typecheck": "tsc --noEmit -p tsconfig.json"
},