-
Notifications
You must be signed in to change notification settings - Fork 5
/
Brocfile.js
41 lines (31 loc) · 973 Bytes
/
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
var filterES6Modules = require('broccoli-es6-module-filter'),
concat = require('broccoli-concat'),
pkg = require('./package');
module.exports = function(broccoli) {
var global = 'Ember',
namespace = 'DeviseSimpleAuth';
var appTree = broccoli.makeTree('app'),
configTree = broccoli.makeTree('config');
appTree = filterES6Modules(appTree, {
moduleType: 'amd',
main: 'index',
packageName: 'app',
anonymous: false
});
configTree = filterES6Modules(configTree, {
moduleType: 'amd',
main: 'plugin',
packageName: pkg.name,
anonymous: false
});
var amdTree = new broccoli.MergedTree([appTree, configTree]);
var globalTree = concat(amdTree, {
inputFiles: ['../../support/loader.js', '**/*.js', '../../support/exports.js'],
outputFile: '/globals/index.js'
});
amdTree = concat(amdTree, {
inputFiles: ['**/*.js'],
outputFile: '/appkit/index.js'
});
return [globalTree, amdTree];
};