Allow npm build
commands to be used cross-platform (on Windows).
Windows command prompts set and use enviroment variables differently than POSIX terminals. `cross-env` is a wrapper that allow the commands to run with the same effect on Windows as well. It will not affect any POSIX terminal (including Bash on Windows).
This commit is contained in:
@ -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",
|
||||
|
Reference in New Issue
Block a user