equal
deleted
inserted
replaced
|
1 /* jshint node: true */ |
|
2 |
|
3 module.exports = function(environment) { |
|
4 var ENV = { |
|
5 modulePrefix: 'dummy', |
|
6 environment: environment, |
|
7 baseURL: '/', |
|
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 } |
|
14 }, |
|
15 |
|
16 APP: { |
|
17 // Here you can pass flags/options to your application instance |
|
18 // when it is created |
|
19 } |
|
20 }; |
|
21 |
|
22 if (environment === 'development') { |
|
23 // ENV.APP.LOG_RESOLVER = true; |
|
24 // ENV.APP.LOG_ACTIVE_GENERATION = true; |
|
25 // ENV.APP.LOG_TRANSITIONS = true; |
|
26 // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; |
|
27 // ENV.APP.LOG_VIEW_LOOKUPS = true; |
|
28 } |
|
29 |
|
30 if (environment === 'test') { |
|
31 // Testem prefers this... |
|
32 ENV.baseURL = '/'; |
|
33 ENV.locationType = 'none'; |
|
34 |
|
35 // keep test console output quieter |
|
36 ENV.APP.LOG_ACTIVE_GENERATION = false; |
|
37 ENV.APP.LOG_VIEW_LOOKUPS = false; |
|
38 |
|
39 ENV.APP.rootElement = '#ember-testing'; |
|
40 } |
|
41 |
|
42 if (environment === 'production') { |
|
43 |
|
44 } |
|
45 |
|
46 return ENV; |
|
47 }; |