-
Notifications
You must be signed in to change notification settings - Fork 5
/
Brocfile.js
66 lines (57 loc) · 1.38 KB
/
Brocfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var push = Array.prototype.push;
var app = new EmberApp({
name: require('./package.json').name,
legacyFilesToAppend: [
'jquery.js',
'handlebars.js',
'ember.js',
'ic-ajax/dist/named-amd/main.js',
'ember-data.js',
'app-shims.js',
'ember-resolver.js',
'ember-load-initializers.js',
'codemirror/lib/codemirror.js',
'codemirror/mode/javascript/javascript.js',
'es6-module-transpiler.js',
'esprima.js',
'escodegen.browser.js',
'loop-protect.js'
],
// AKA whitelisted modules
ignoredModules: [
'ember',
'ember/resolver',
'ember/load-initializers',
'ic-ajax'
],
// hack we can hopefully remove as the addon system improves
importWhitelist: {
'ember': ['default'],
'ember/resolver': ['default'],
'ember/load-initializers': ['default'],
'ember-qunit': [
'globalize',
'moduleFor',
'moduleForComponent',
'moduleForModel',
'test',
'setResolver'
],
'qunit': ['default']
},
// hack
getEnvJSON: require('./config/environment')
});
if (app.env !== 'production') {
push.apply(app.ignoredModules, [
'qunit',
'ember-qunit'
]);
push.apply(app.legacyFilesToAppend, [
'test-shims.js',
'ember-qunit/dist/named-amd/main.js'
]);
}
module.exports = app.toTree();