Browse Source

增加热启动

Caner 2 years ago
parent
commit
d827aad608
1 changed files with 4 additions and 2 deletions
  1. 4 2
      package.json

+ 4 - 2
package.json

@@ -5,9 +5,10 @@
   "author": "Caner",
   "description": "控制端",
   "scripts": {
-    "dev": "vite & yarn edev",
+    "dev": "concurrently -k \"yarn:dev_*\"",
     "build": "vue-tsc --noEmit && vite build && yarn pmake",
-    "edev": "electron .",
+    "dev_vite": "vite",
+    "dev_electron": "electron .",
     "make": "electron-forge make",
     "pmake": "electron-forge package"
   },
@@ -27,6 +28,7 @@
     "eslint-config-airbnb-base": "^15.0.0",
     "eslint-plugin-import": "^2.27.5",
     "eslint-plugin-vue": "^9.13.0",
+    "concurrently": "^8.1.0",
     "less": "^4.1.3",
     "typescript": "^5.0.4",
     "vite": "^4.3.6",