2.1.0 • Published 9 years ago
npm-env v2.1.0
npm-env
Clone of cross-env prepending npm binaries to PATH.
Why?
Prepending npm binary paths to PATH allows shell-scripting outside of JSON file.
This package follows the mindset of scripty but prefers to not use npm run at all.
Installation
npm install -g npm-envUsage
Remove all non-lifecycle scripts from
package.jsonCreate following script file in
scripts/build:
npm-env NODE_ENV=production webpack --config build/webpack.config.js- You can run this script cross-platform with simple:
npm-env scripts/buildor even:
run scripts/buildLICENSE
MIT