https://github.com/jimzhan/yo-env
Structure your npm scripts better via NODE_ENV
https://github.com/jimzhan/yo-env
env environment nodejs npm npmscripts per-env process scripts
Last synced: 3 months ago
JSON representation
Structure your npm scripts better via NODE_ENV
- Host: GitHub
- URL: https://github.com/jimzhan/yo-env
- Owner: jimzhan
- License: mit
- Created: 2018-07-23T15:03:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-28T05:57:50.000Z (over 7 years ago)
- Last Synced: 2025-01-21T05:08:17.626Z (about 1 year ago)
- Topics: env, environment, nodejs, npm, npmscripts, per-env, process, scripts
- Language: JavaScript
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# yo-env
Structure your npm scripts better via `NODE_ENV`
[](https://travis-ci.org/jimzhan/yo-env)
[](https://www.npmjs.com/package/yo-env)
[](https://github.com/airbnb/javascript)
[](http://commitizen.github.io/cz-cli/)
[](https://www.npmjs.com/package/yo-env)
## Install
```shell
npm install yo-env
```
## WHAT?
Cross-platform supplement for your npm scripts.
## HOW?
```
// package.json
{
"scripts": {
"start": "yo-env",
/* --- invoked when `NODE_ENV=development` (default). --- */
"start:development": "nodemon --exec babel-node --inspect src/index.js",
/* --- invoked when `NODE_ENV=production`. --- */
"start:production": "node --require esm src/index.js"
}
}
```
### License
> MIT License 2018 © Jim Zhan