1.3.11 • Published 5 years ago

pon-task-env v1.3.11

Weekly downloads
440
License
Apache-2.0
Repository
github
Last release
5 years ago

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

ParamtypeDescription
nodeEnvstringNODE_ENV to set
otherEnvObjectOther env vriables
optionsObjectOptional settings

License

This software is released under the Apache-2.0 License.

Links

1.3.11

5 years ago

1.3.10

6 years ago

1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.2.1

6 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago