|
9 | 9 | "url": "http://github.com/insin/react-hn.git" |
10 | 10 | }, |
11 | 11 | "scripts": { |
12 | | - "build": "npm run lint && cp node_modules/sw-toolbox/sw-toolbox.js public/sw-toolbox.js && ./node_modules/.bin/nwb build && npm run precache", |
| 12 | + "build": "npm run lint && cp node_modules/sw-toolbox/sw-toolbox.js dist/sw-toolbox.js && ./node_modules/.bin/nwb build && npm run copy-manifest && npm run precache", |
13 | 13 | "deploy": "gcloud preview app deploy", |
14 | 14 | "lint": "./node_modules/eslint-config-jonnybuchanan/bin/lint.js src", |
15 | 15 | "lint:fix": "./node_modules/eslint-config-jonnybuchanan/bin/lint.js --fix .", |
16 | 16 | "start": "node server.js", |
17 | 17 | "postinstall": "npm run build", |
18 | 18 | "serve": "./node_modules/.bin/nwb serve", |
19 | | - "precache": "./node_modules/sw-precache/cli.js --root=public --config=sw-precache-config.json" |
| 19 | + "copy-manifest": "cp public/manifest.json dist/manifest.json", |
| 20 | + "clean": "rm -rf *.json.gzip dist/index.html", |
| 21 | + "precache": "./node_modules/sw-precache/cli.js --root=public --config=sw-precache-config.json && npm run clean" |
20 | 22 | }, |
21 | 23 | "engines": { |
22 | 24 | "node": "6.1.0" |
23 | 25 | }, |
24 | 26 | "main": "server.js", |
25 | 27 | "dependencies": { |
| 28 | + "babel-preset-es2015": "^6.16.0", |
| 29 | + "babel-preset-react": "^6.16.0", |
| 30 | + "babel-preset-stage-0": "^6.16.0", |
| 31 | + "babel-register": "^6.16.0", |
26 | 32 | "ejs": "^2.4.1", |
27 | | - "eslint-config-jonnybuchanan": "2.0.3", |
28 | | - "events": "1.1.0", |
| 33 | + "eslint-config-jonnybuchanan": "4.6.0", |
| 34 | + "events": "1.1.1", |
29 | 35 | "express": "^4.13.4", |
30 | | - "firebase": "2.4.2", |
31 | | - "history": "2.1.1", |
| 36 | + "firebase": "3.4.1", |
| 37 | + "history": "^2.1.2", |
32 | 38 | "isomorphic-fetch": "^2.2.1", |
33 | | - "nwb": "0.8.1", |
| 39 | + "nwb": "0.12.2", |
34 | 40 | "object-assign": "^4.1.0", |
35 | | - "react": "15.0.2", |
36 | | - "react-dom": "15.0.2", |
37 | | - "react-router": "2.4.0", |
38 | | - "react-timeago": "3.0.0", |
39 | | - "reactfire": "0.7.0", |
40 | | - "scroll-behavior": "0.5.0", |
41 | | - "setimmediate": "1.0.4", |
42 | | - "sw-precache": "^3.1.1", |
| 41 | + "react": "15.3.2", |
| 42 | + "react-dom": "15.3.2", |
| 43 | + "react-router": "2.8.1", |
| 44 | + "react-router-scroll": "^0.3.2", |
| 45 | + "react-timeago": "3.1.3", |
| 46 | + "reactfire": "1.0.0", |
| 47 | + "scroll-behavior": "0.8.1", |
| 48 | + "setimmediate": "1.0.5", |
| 49 | + "sw-precache": "^4.1.0", |
43 | 50 | "sw-toolbox": "^3.1.1", |
44 | 51 | "url-parse": "^1.1.1" |
| 52 | + }, |
| 53 | + "devDependencies": { |
| 54 | + "html-webpack-plugin": "^2.22.0", |
| 55 | + "webpack": "^1.13.2" |
45 | 56 | } |
46 | 57 | } |
0 commit comments