1 | 'use strict';
|
2 |
|
3 | function isInstrumentedBuild() {
|
4 | return process.env.INSTRUMENT;
|
5 | }
|
6 |
|
7 | function wantsEnabledFeatures() {
|
8 | return process.env.ENABLE_IN_PROGRESS;
|
9 | }
|
10 |
|
11 | function isPackingForPublish() {
|
12 | return process.env.IS_EMBER_DATA_RELEASE;
|
13 | }
|
14 |
|
15 | function 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 |
|
28 | module.exports = {
|
29 | isInstrumentedBuild,
|
30 | wantsEnabledFeatures,
|
31 | getManuallyEnabledFeatures,
|
32 | isPackingForPublish,
|
33 | };
|