decide.nolog.cz/config/environment.js

56 lines
1.2 KiB
JavaScript
Raw Normal View History

'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,
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
// 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,
},
2018-12-29 01:27:37 +01:00
},
2014-10-30 21:44:22 +01:00
APP: {
// Here you can pass flags/options to your application instance
// when it is created
},
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') {
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;
};