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