Skip to content

Commit 3a3e4ff

Browse files
committed
Isomorphic-shell: refresh of build pipeline
Introduces `deploy`, localises a lot of the current binaries so that they don’t require global installs (and work fine on Heroku and AppEngine). `serve` now gives you the old `start` behaviour and `start` now just runs the node server that we default to.
1 parent 8a8fbd5 commit 3a3e4ff

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@
99
"url": "http://github.com/insin/react-hn.git"
1010
},
1111
"scripts": {
12-
"build": "npm run lint && cp node_modules/sw-toolbox/sw-toolbox.js public/sw-toolbox.js && nwb build && npm run precache",
13-
"lint": "eslint src",
14-
"lint:fix": "eslint --fix .",
15-
"start": "nwb serve",
16-
"precache": "sw-precache --root=public --config=sw-precache-config.json"
12+
"build": "npm run lint && cp node_modules/sw-toolbox/sw-toolbox.js public/sw-toolbox.js && ./node_modules/nwb/lib/bin/nwb.js build && npm run precache",
13+
"deploy": "gcloud preview app deploy",
14+
"lint": "./node_modules/eslint-config-jonnybuchanan/bin/lint.js src",
15+
"lint:fix": "./node_modules/eslint-config-jonnybuchanan/bin/lint.js --fix .",
16+
"start": "node server.js",
17+
"postinstall": "npm run build",
18+
"serve": "./node_modules/lib/bin/nwb.js serve",
19+
"precache": "./node_modules/sw-precache/cli.js --root=public --config=sw-precache-config.json"
1720
},
1821
"engines": {
1922
"node": "6.1.0"

0 commit comments

Comments
 (0)