npm promotes metadefinitions
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

npm-env

2.1.0 • Public • Published

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-env

Usage

  1. Remove all non-lifecycle scripts from package.json

  2. Create following script file in scripts/build:

npm-env NODE_ENV=production webpack --config build/webpack.config.js
  1. You can run this script cross-platform with simple:
npm-env scripts/build

or even:

run scripts/build

LICENSE

MIT

install

npm i npm-env

Downloadsweekly downloads

0

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability