pon-task-env
Pon task to set NODE_ENV
Last updated 5 months ago by realglobe .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install pon-task-env 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.3.10                                ...           latest (5 months ago)

18 Versions

  • 1.3.10                                ...           5 months ago
  • 1.3.9                                ...           5 months ago
  • 1.3.8                                ...           5 months ago
  • 1.3.7                                ...           5 months ago
  • 1.3.6                                ...           7 months ago
  • 1.3.5                                ...           7 months ago
  • 1.3.4                                ...           10 months ago
  • 1.3.3                                ...           a year ago
  • 1.3.2                                ...           a year ago
  • 1.3.1                                ...           a year ago
  • 1.2.1                                ...           a year ago
  • 1.1.3                                ...           a year ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 18
Last Day 0
Last Week 0
Last Month 54
Dependencies (3)
Dev Dependencies (16)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |