Skip to content

Commit 9e2324f

Browse files
committed
don't hook on postinstall, current dev cycle uses (abuses) npm i to build
so no point making it take longer than it has to for the devs only testing webapp build:electron - hook npm run install:electron install:electron - run npm i for the electron deps electron - start the app locally for testing add to README Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 3fb5402 commit 9e2324f

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ To run as a desktop app:
135135

136136
```
137137
npm install electron
138+
npm run install:electron
138139
node_modules/.bin/electron .
139140
```
140141

‎package.json‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
"build:compile": "babel --source-maps -d lib src",
3333
"build:bundle": "NODE_ENV=production webpack -p --progress",
3434
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
35-
"build:electron": "npm run clean && npm run build && build -wml --ia32 --x64",
35+
"build:electron": "npm run clean && npm run build && npm run install:electron && build -wml --ia32 --x64",
3636
"build": "node scripts/babelcheck.js && npm run build:res && npm run build:bundle",
3737
"build:dev": "node scripts/babelcheck.js && npm run build:res && npm run build:bundle:dev",
3838
"dist": "scripts/package.sh",
39-
"postinstall": "cd electron && npm i",
39+
"install:electron": "cd electron && npm i",
40+
"electron": "npm run install:electron && electron .",
4041
"start:res": "node scripts/copy-res.js -w",
4142
"start:js": "webpack-dev-server --output-filename=bundles/_dev_/[name].js --output-chunk-file=bundles/_dev_/[name].js -w --progress",
4243
"start:js:prod": "NODE_ENV=production webpack-dev-server -w --progress",

0 commit comments

Comments
 (0)