mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 00:33:17 +00:00
Use npm-run-all in npm scripts
This should allow us to run NPM scripts on Windows
This commit is contained in:
parent
dd3ad857de
commit
32846db1cb
1 changed files with 6 additions and 2 deletions
|
|
@ -83,10 +83,14 @@
|
|||
},
|
||||
"scripts": {
|
||||
"postinstall": "npm --prefix client install",
|
||||
"build": "gulp build; webpack --config ./client/webpack/prod.config.js",
|
||||
"build": "npm run gulp:prod:build && npm run webpack:prod:build",
|
||||
"dist": "NODE_ENV=production npm run build",
|
||||
"watch": "webpack --config ./client/webpack/dev.config.js & gulp watch",
|
||||
"watch": "npm-run-all --parallel gulp:dev:watch webpack:dev:watch",
|
||||
"start": "npm run watch",
|
||||
"gulp:dev:watch": "gulp watch",
|
||||
"gulp:prod:build": "gulp build",
|
||||
"webpack:dev:watch": "webpack --config ./client/webpack/dev.config.js",
|
||||
"webpack:prod:build": "webpack --config ./client/webpack/prod.config.js",
|
||||
"lint:js": "eslint --max-warnings 16 ./client",
|
||||
"lint:css": "stylelint **/*.scss",
|
||||
"lint": "npm run lint:js",
|
||||
|
|
|
|||
Loading…
Reference in a new issue