Move dev commands into its own script.
This commit is contained in:
parent
8d3c035e7b
commit
9ab1436d49
|
@ -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",
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue