forked from wecatch/ember-semantic-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
40 lines (37 loc) · 1.13 KB
/
index.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
'use strict';
var mergeTrees = require( 'broccoli-merge-trees' );
var Funnel = require('broccoli-funnel');
module.exports = {
name: 'ember-semantic-ui',
included: function(app){
if (typeof app.import !== 'function' && app.app) {
app = app.app;
}
this._super.included(app);
app.import({
development : 'node_modules/moment/min/moment-with-locales.js',
production : 'node_modules/moment/min/moment-with-locales.min.js'
});
app.import('node_modules/pikaday/pikaday.js');
app.import('node_modules/pikaday/css/pikaday.css');
app.import('vendor/shims/moment.js');
app.import('vendor/shims/pikaday.js');
},
postprocessTree: function( type, tree ) {
return mergeTrees([ tree,
new Funnel( 'bower_components/semantic/dist', {
srcDir : 'themes',
include : ['**/*'],
destDir : '/assets/themes'
}),
new Funnel('bower_components/semantic/dist', {
srcDir : '.',
include : ['*.min.*'],
destDir : '/assets/'
})
],
{
overwrite: true
});
}
};