JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q32723F
  • License MIT

Structure your npm scripts better via NODE_ENV

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

build npm version JavaScript Style Guide Commitizen friendly npm downloads

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