Name: broccoli-env
Owner: PeopleDoc
Description: Get the Broccoli build environment from BROCCOLI_ENV
Created: 2016-01-18 15:48:10.0
Updated: 2017-11-20 21:05:25.0
Pushed: 2016-02-05 07:49:38.0
Size: 8
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Get the environment (development or production) from the BROCCOLI_ENV environment variable.
install --save-dev broccoli-env
env = require('broccoli-env').getEnv();
ole.log(env) // => 'development' or 'production'
s
env = require('broccoli-env').setEnvs(['development','production', 'testing']).getEnv();
ole.log(env) // => 'development', 'production' or 'testing'