github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/config/environment.js (about) 1 /* eslint-env node */ 2 3 module.exports = function(environment) { 4 var ENV = { 5 modulePrefix: 'nomad-ui', 6 environment: environment, 7 rootURL: '/ui/', 8 locationType: 'auto', 9 EmberENV: { 10 FEATURES: { 11 // Here you can enable experimental features on an ember canary build 12 // e.g. 'with-controller': true 13 'ember-routing-router-service': true, 14 }, 15 EXTEND_PROTOTYPES: { 16 // Prevent Ember Data from overriding Date.parse. 17 Date: false, 18 }, 19 }, 20 21 APP: { 22 // Here you can pass flags/options to your application instance 23 // when it is created 24 }, 25 }; 26 27 if (environment === 'development') { 28 // ENV.APP.LOG_RESOLVER = true; 29 // ENV.APP.LOG_ACTIVE_GENERATION = true; 30 // ENV.APP.LOG_TRANSITIONS = true; 31 // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; 32 // ENV.APP.LOG_VIEW_LOOKUPS = true; 33 34 ENV['ember-cli-mirage'] = { 35 // enabled: false, 36 }; 37 } 38 39 if (environment === 'test') { 40 // Testem prefers this... 41 ENV.locationType = 'none'; 42 43 // keep test console output quieter 44 ENV.APP.LOG_ACTIVE_GENERATION = false; 45 ENV.APP.LOG_VIEW_LOOKUPS = false; 46 47 ENV.APP.rootElement = '#ember-testing'; 48 49 ENV.browserify = { 50 tests: true, 51 }; 52 } 53 54 if (environment === 'production') { 55 } 56 57 return ENV; 58 };