Add 'prepare' npm script

This commit is contained in:
Jinksi 2017-11-18 14:07:18 +10:00
parent ab1f52711e
commit f12792edf1

View file

@ -35,11 +35,12 @@
},
"scripts": {
"start":
"npm run parse-content && npm run resize-images && react-scripts start",
"npm run prepare && react-scripts start",
"build":
"npm run parse-content && npm run resize-images && react-scripts build && react-snapshot && npm run sw",
"npm run prepare && react-scripts build && react-snapshot && npm run sw",
"parse-content": "node ./functions/parse-content.js",
"resize-images": "node ./functions/resize-images.js",
"prepare": "npm run parse-content & npm run resize-images",
"sw": "sw-precache --config='sw-precache-config.js'",
"test": "standard | snazzy && react-scripts test --env=jsdom",
"eject": "react-scripts eject"