Skip to content

Commit 0535d2f

Browse files
committed
Backout of the changes that ember-cli maybe can't handle
1 parent e5ca34d commit 0535d2f

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

files/config/environment.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
'use strict';
2+
3+
module.exports = function (environment) {
4+
const ENV = {
5+
modulePrefix: '<%= modulePrefix %>',
6+
environment,
7+
rootURL: '/',
8+
locationType: 'history',
9+
EmberENV: {
10+
EXTEND_PROTOTYPES: false,
11+
FEATURES: {
12+
// Here you can enable experimental features on an ember canary build
13+
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: 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') {
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;
29+
}
30+
31+
if (environment === 'test') {
32+
// Testem prefers this...
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+
ENV.APP.autoboot = false;
41+
}
42+
43+
if (environment === 'production') {
44+
// here you can enable a production-specific feature
45+
}
46+
47+
return ENV;
48+
};

files/config/targets.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
'use strict';
2+
3+
const browsers = [
4+
'last 1 Chrome versions',
5+
'last 1 Firefox versions',
6+
'last 1 Safari versions',
7+
];
8+
9+
module.exports = {
10+
browsers,
11+
};

0 commit comments

Comments
 (0)