Package Exports
- yo-env
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (yo-env) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
yo-env
Structure your npm scripts better via NODE_ENV
Install
npm install yo-envWHAT?
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