UNPKG

591 BJavaScriptView Raw
1'use strict';
2
3function isInstrumentedBuild() {
4 return process.env.INSTRUMENT;
5}
6
7function wantsEnabledFeatures() {
8 return process.env.ENABLE_IN_PROGRESS;
9}
10
11function isPackingForPublish() {
12 return process.env.IS_EMBER_DATA_RELEASE;
13}
14
15function getManuallyEnabledFeatures() {
16 let enabled = {};
17 let ARGS = process.env.ENABLE_IN_PROGRESS;
18
19 if (ARGS) {
20 ARGS.split(',').forEach(function(flag) {
21 enabled[flag] = true;
22 });
23 }
24
25 return enabled;
26}
27
28module.exports = {
29 isInstrumentedBuild,
30 wantsEnabledFeatures,
31 getManuallyEnabledFeatures,
32 isPackingForPublish,
33};