forked from indexiatech/ember-idx-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (35 loc) · 1.21 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
/* jshint node: true */
'use strict';
var mergeTrees = require( 'broccoli-merge-trees' ),
pickFiles = require( 'broccoli-static-compiler' );
module.exports = {
name: 'ember-idx-tree',
included: function( app ) {
this._super.included( app );
var isDummy = app.name === 'dummy'
if (isDummy) {
app.import( 'bower_components/bootstrap/dist/css/bootstrap-theme.css.map' );
app.import({
development : 'bower_components/bootstrap/dist/css/bootstrap.css'
});
app.import({
development : 'bower_components/fontawesome/css/font-awesome.min.css'
});
app.import({
development : 'bower_components/highlightjs/highlight.pack.js'
});
app.import({
development : 'bower_components/highlightjs/styles/tomorrow.css'
});
}
},
postprocessTree: function( type, tree ) {
return mergeTrees([ tree,
pickFiles( 'bower_components/fontawesome/fonts', {
srcDir : '/',
files : [ 'fontawesome-webfont.woff' ],
destDir : '/fonts'
})
]);
},
};