4
|
1 |
/* jshint node: true */ |
|
2 |
|
|
3 |
module.exports = function(environment) { |
|
4 |
var ENV = { |
|
5 |
modulePrefix: 'bo-client', |
|
6 |
environment: environment, |
|
7 |
baseURL: '/', |
20
|
8 |
//locationType: 'auto', |
4
|
9 |
locationType: 'auto', |
|
10 |
EmberENV: { |
|
11 |
FEATURES: { |
|
12 |
// Here you can enable experimental features on an ember canary build |
|
13 |
// e.g. 'with-controller': true |
|
14 |
} |
|
15 |
}, |
|
16 |
|
|
17 |
APP: { |
|
18 |
// Here you can pass flags/options to your application instance |
|
19 |
// when it is created |
|
20 |
} |
|
21 |
}; |
|
22 |
|
|
23 |
if (environment === 'development') { |
20
|
24 |
ENV.APP.LOG_RESOLVER = true; |
|
25 |
ENV.APP.LOG_ACTIVE_GENERATION = true; |
|
26 |
ENV.APP.LOG_TRANSITIONS = true; |
|
27 |
ENV.APP.LOG_TRANSITIONS_INTERNAL = true; |
|
28 |
ENV.APP.LOG_VIEW_LOOKUPS = true; |
4
|
29 |
} |
|
30 |
|
|
31 |
if (environment === 'test') { |
|
32 |
// Testem prefers this... |
|
33 |
ENV.baseURL = '/'; |
|
34 |
ENV.locationType = 'none'; |
|
35 |
|
|
36 |
// keep test console output quieter |
|
37 |
ENV.APP.LOG_ACTIVE_GENERATION = false; |
|
38 |
ENV.APP.LOG_VIEW_LOOKUPS = false; |
|
39 |
|
|
40 |
ENV.APP.rootElement = '#ember-testing'; |
|
41 |
} |
|
42 |
|
|
43 |
if (environment === 'production') { |
20
|
44 |
ENV.locationType = 'hash'; |
4
|
45 |
} |
|
46 |
|
|
47 |
return ENV; |
|
48 |
}; |