-
Notifications
You must be signed in to change notification settings - Fork 7
/
Brocfile.js
42 lines (32 loc) · 1.05 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
var pickFiles = require('broccoli-static-compiler');
var vndFilterES6Modules = require('broccoli-dist-es6-module');
var mergeTrees = require('broccoli-merge-trees');
var autoprefixer = require('broccoli-autoprefixer');
var templateCompiler = require('broccoli-ember-hbs-template-compiler');
var lib = 'lib';
var appAddonLib = 'app-addon';
var templateAddonLib = 'templates-addon';
var styles = 'vendor-addon/un-calendar/styles';
lib = mergeTrees([lib, appAddonLib]);
function filterES6Modules(tree, opts) {
return vndFilterES6Modules(tree, opts);
}
var templates = pickFiles(templateAddonLib, {
srcDir: '/components',
destDir: '/templates'
});
templates = templateCompiler(templates, {
module: true
});
lib = mergeTrees([lib, templates]);
lib = filterES6Modules(lib, {
global: 'Un.Calendar',
packageName: 'un-calendar',
main: 'un-calendar',
shim: {
ember: 'Ember',
handlebars: 'Handlebars',
moment: 'moment'
}
});
module.exports = mergeTrees([lib, styles]);