Merge pull request #506 from tech4him1/crossEnv

Allow `npm build` commands to be used cross-platform (on Windows).
This commit is contained in:
Shawn Erquhart
2017-08-17 11:59:38 -04:00
committed by GitHub
2 changed files with 15 additions and 3 deletions

View File

@ -7,8 +7,8 @@
"start": "webpack-dev-server -d --config webpack.dev.js",
"test": "jest",
"test:watch": "jest --watch",
"build": "NODE_ENV=production webpack --config webpack.prod.js --display-error-details",
"build:scripts": "NODE_ENV=production webpack --config webpack.cli.js",
"build": "cross-env NODE_ENV=production webpack --config webpack.prod.js --display-error-details",
"build:scripts": "cross-env NODE_ENV=production webpack --config webpack.cli.js",
"storybook": "start-storybook -p 9001",
"storybook-build": "build-storybook -o dist",
"lint": "npm run lint:js & npm run lint:css",
@ -59,6 +59,7 @@
"babel-preset-react": "^6.5.0",
"babel-preset-stage-1": "^6.16.0",
"babel-runtime": "^6.5.0",
"cross-env": "^5.0.2",
"css-loader": "^0.28.4",
"enzyme": "^2.4.1",
"eslint": "^3.7.1",