added platform tools download to build as well as generating compiled code

This commit is contained in:
Shane Harris
2020-08-17 13:31:48 +01:00
committed by Your Name
parent e0f647c7eb
commit 1996fa3c6d
9 changed files with 84 additions and 17 deletions
+4 -2
View File
@@ -10,11 +10,13 @@
"concurrently": "concurrently",
"start": "concurrently \"yarn electron-build && wait-on http-get://localhost:4205/ && cross-env NODE_ENV=dev electron .\" \"cd desktop-app && ng serve --port 4205\"",
"postinstall": "electron-builder install-app-deps && cd desktop-app && yarn install",
"dist": "yarn electron-build && yarn app-build && electron-builder",
"dist": "yarn platform-tools && yarn electron-gen && yarn electron-build && yarn app-build && electron-builder",
"angular": "cd desktop-app && ng serve --port 4205",
"electron-dev": "cross-env NODE_ENV=dev electron .",
"electron-dev": "yarn platform-tools && cross-env NODE_ENV=dev electron .",
"electron-gen": "yarn electron-dev gen-code",
"electron": "yarn electron-build && yarn electron-dev",
"app-build": "cd desktop-app && ng build --prod --aot && cd ..",
"platform-tools": "node build-electron/platform-tools.js",
"electron-build": "tsc",
"reset": "rm -rf node_modules && rm -rf desktop-app/node_modules && yarn install && cd desktop-app && yarn install"
},