yo-env
v0.9.1
Published
Structure your npm scripts better via NODE_ENV
Downloads
19
Maintainers
Readme
yo-env
Structure your npm scripts better via NODE_ENV
Install
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