-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.js
47 lines (41 loc) · 1.42 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
41
42
43
44
45
46
47
/* jshint node: true */
'use strict';
var mergeTrees = require( 'broccoli-merge-trees' ),
pickFiles = require( 'broccoli-static-compiler' );
module.exports = {
name: 'ember-idx-button',
included: function( app ) {
var isDummy = app.name === 'dummy'
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 ) {
var isDummy = (process.env.npm_package_name === 'ember-idx-button');
if (isDummy) {
return mergeTrees([ tree,
pickFiles( 'bower_components/fontawesome/fonts', {
srcDir : '/',
files : [ 'fontawesome-webfont.woff' ],
destDir : '/fonts'
})
]);
} else {
return tree;
}
},
};