Move dev commands into its own script.

This commit is contained in:
Matt McWilliams 2021-02-22 13:03:41 -05:00
parent 8d3c035e7b
commit 9ab1436d49
2 changed files with 16 additions and 1 deletions

View File

@ -5,7 +5,7 @@
"main": "main.js",
"scripts": {
"start": "./node_modules/.bin/electron main.js",
"dev": "npm run compile && npm run gulp && ./node_modules/.bin/electron main.js -d",
"dev": "bash ./scripts/dev.sh",
"gulp": "./node_modules/.bin/gulp",
"compile": "sh ./scripts/compile.sh",
"install": "./node_modules/.bin/electron-rebuild",

15
app/scripts/dev.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
# compile main process code
cd ..
npm run compile
cd ./app
# compile renderer process code
npm run compile
# compile LESS and pack javascript
npm run gulp
# start app with dev flag
./node_modules/.bin/electron main.js -d