pon-task-env

1.3.11 • Public • Published

pon-task-env

Build Status npm Version JS Standard

Pon task to set NODE_ENV

Installation

$ npm install pon-task-env --save

Usage

'use strict'
 
const pon = require('pon')
const env = require('pon-task-env')
 
async function tryExample () {
  let run = pon({
    'production:env': env('production'),
    'production:debug': env('development', { DEBUG: 'sg:*' }), // Change env variables other than NODE_ENV
    'production:compile': () => { /* ... */ }
  })
 
  run('production:env', 'production:compile')
}
 
tryExample()
 

Signatures

define(nodeEnv, otherEnv, options) -> function

Define task

Param type Description
nodeEnv string NODE_ENV to set
otherEnv Object Other env vriables
options Object Optional settings

License

This software is released under the Apache-2.0 License.

Links

/pon-task-env/

    Package Sidebar

    Install

    npm i pon-task-env

    Weekly Downloads

    27

    Version

    1.3.11

    License

    Apache-2.0

    Unpacked Size

    48.8 kB

    Total Files

    29

    Last publish

    Collaborators

    • realglobe