equal
deleted
inserted
replaced
3 module.exports = function(environment) { |
3 module.exports = function(environment) { |
4 var ENV = { |
4 var ENV = { |
5 modulePrefix: 'bo-client', |
5 modulePrefix: 'bo-client', |
6 environment: environment, |
6 environment: environment, |
7 baseURL: '/', |
7 baseURL: '/', |
|
8 //locationType: 'auto', |
8 locationType: 'auto', |
9 locationType: 'auto', |
9 EmberENV: { |
10 EmberENV: { |
10 FEATURES: { |
11 FEATURES: { |
11 // Here you can enable experimental features on an ember canary build |
12 // Here you can enable experimental features on an ember canary build |
12 // e.g. 'with-controller': true |
13 // e.g. 'with-controller': true |
18 // when it is created |
19 // when it is created |
19 } |
20 } |
20 }; |
21 }; |
21 |
22 |
22 if (environment === 'development') { |
23 if (environment === 'development') { |
23 // ENV.APP.LOG_RESOLVER = true; |
24 ENV.APP.LOG_RESOLVER = true; |
24 // ENV.APP.LOG_ACTIVE_GENERATION = true; |
25 ENV.APP.LOG_ACTIVE_GENERATION = true; |
25 // ENV.APP.LOG_TRANSITIONS = true; |
26 ENV.APP.LOG_TRANSITIONS = true; |
26 // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; |
27 ENV.APP.LOG_TRANSITIONS_INTERNAL = true; |
27 // ENV.APP.LOG_VIEW_LOOKUPS = true; |
28 ENV.APP.LOG_VIEW_LOOKUPS = true; |
28 } |
29 } |
29 |
30 |
30 if (environment === 'test') { |
31 if (environment === 'test') { |
31 // Testem prefers this... |
32 // Testem prefers this... |
32 ENV.baseURL = '/'; |
33 ENV.baseURL = '/'; |
38 |
39 |
39 ENV.APP.rootElement = '#ember-testing'; |
40 ENV.APP.rootElement = '#ember-testing'; |
40 } |
41 } |
41 |
42 |
42 if (environment === 'production') { |
43 if (environment === 'production') { |
43 |
44 ENV.locationType = 'hash'; |
44 } |
45 } |
45 |
46 |
46 return ENV; |
47 return ENV; |
47 }; |
48 }; |