2017-07-29 15:00:11 +02:00
|
|
|
'use strict';
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
module.exports = function(environment) {
|
2018-12-29 01:27:37 +01:00
|
|
|
let ENV = {
|
2014-10-30 21:44:22 +01:00
|
|
|
modulePrefix: 'croodle',
|
2018-12-29 01:27:37 +01:00
|
|
|
environment,
|
2019-05-28 22:40:14 +02:00
|
|
|
rootURL: '',
|
2014-11-01 18:00:46 +01:00
|
|
|
locationType: 'hash',
|
2018-12-29 01:27:37 +01:00
|
|
|
EmberENV: {
|
|
|
|
FEATURES: {
|
|
|
|
// Here you can enable experimental features on an ember canary build
|
2019-07-13 10:26:30 +02:00
|
|
|
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
|
2018-12-29 01:27:37 +01:00
|
|
|
},
|
|
|
|
EXTEND_PROTOTYPES: {
|
|
|
|
Array: true,
|
|
|
|
Date: false,
|
|
|
|
String: false,
|
|
|
|
Function: true
|
|
|
|
}
|
|
|
|
},
|
2014-10-30 21:44:22 +01:00
|
|
|
|
|
|
|
APP: {
|
|
|
|
// Here you can pass flags/options to your application instance
|
|
|
|
// when it is created
|
2015-01-16 16:38:47 +01:00
|
|
|
},
|
2014-10-30 21:44:22 +01:00
|
|
|
};
|
|
|
|
|
2018-12-29 01:27:37 +01:00
|
|
|
if (environment === 'development') {
|
|
|
|
// ENV.APP.LOG_RESOLVER = true;
|
|
|
|
// ENV.APP.LOG_ACTIVE_GENERATION = true;
|
|
|
|
// ENV.APP.LOG_TRANSITIONS = true;
|
|
|
|
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
|
|
|
|
// ENV.APP.LOG_VIEW_LOOKUPS = true;
|
|
|
|
}
|
|
|
|
|
2014-10-30 21:44:22 +01:00
|
|
|
if (environment === 'test') {
|
2017-08-31 16:12:45 +02:00
|
|
|
ENV.rootURL = '/';
|
|
|
|
|
2014-10-30 21:44:22 +01:00
|
|
|
// Testem prefers this...
|
2018-12-29 01:27:37 +01:00
|
|
|
ENV.locationType = 'none';
|
2014-07-06 17:37:54 +02:00
|
|
|
|
2014-10-30 21:44:22 +01:00
|
|
|
// keep test console output quieter
|
|
|
|
ENV.APP.LOG_ACTIVE_GENERATION = false;
|
|
|
|
ENV.APP.LOG_VIEW_LOOKUPS = false;
|
|
|
|
|
|
|
|
ENV.APP.rootElement = '#ember-testing';
|
2018-12-29 01:27:37 +01:00
|
|
|
ENV.APP.autoboot = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (environment === 'production') {
|
|
|
|
// here you can enable a production-specific feature
|
2014-10-30 21:44:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return ENV;
|
|
|
|
};
|