forked from softlayer/sl-ember-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
74 lines (59 loc) · 2.33 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* jshint node: true */
'use strict';
var mergeTrees = require( 'broccoli-merge-trees' );
var pickFiles = require( 'broccoli-static-compiler' );
module.exports = {
name: 'sl-ember-components',
included: function( app ) {
this._super.included( app );
if ( app.env === 'development' ) {
app.import( 'bower_components/sl-bootstrap/dist/css/sl-bootstrap-theme.css.map' );
}
app.import({
development: 'bower_components/sl-bootstrap/dist/js/sl-bootstrap.js',
production: 'bower_components/sl-bootstrap/dist/js/sl-bootstrap.min.js'
});
app.import( 'bower_components/bootstrap-datepicker/js/bootstrap-datepicker.js' );
app.import( 'bower_components/fontawesome/css/font-awesome.min.css' );
app.import({
development: 'bower_components/highcharts/highcharts.src.js',
production: 'bower_components/highcharts/highcharts.js'
});
app.import({
development: 'bower_components/moment/min/moment-with-locales.js',
production: 'bower_components/moment/min/moment-with-locales.min.js'
});
app.import({
development: 'bower_components/moment-timezone/builds/moment-timezone-with-data.js',
production: 'bower_components/moment-timezone/builds/moment-timezone-with-data.min.js'
});
app.import({
development: 'bower_components/select2/select2.js',
production: 'bower_components/select2/select2.min.js'
});
app.import({
development: 'bower_components/typeahead.js/dist/typeahead.bundle.js',
production: 'bower_components/typeahead.js/dist/typeahead.bundle.min.js'
});
},
postprocessTree: function( type, tree ) {
return mergeTrees(
[
tree,
pickFiles( 'bower_components/sl-bootstrap/fonts', {
srcDir: '/',
files: [ 'benton-sans-*' ],
destDir: '/fonts'
}),
pickFiles( 'bower_components/fontawesome/fonts', {
srcDir: '/',
files: [ 'fontawesome-webfont.*' ],
destDir: '/fonts'
})
],
{
overwrite: true
}
);
}
};