-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
43 lines (35 loc) · 1.56 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
/* jshint node: true */
'use strict';
var path = require('path');
module.exports = {
name: 'ember-tag-search-input',
included: function(app) {
this._super.included(app);
var bowerDir = app.bowerDirectory;
var options = app.options['ember-tag-search-input'] || {};
var bootstrapPath = path.join(bowerDir,'/bootstrap/dist/');
if (options.importBootstrapCSS) {
app.import(path.join(bootstrapPath, 'css/bootstrap.css'));
app.import(path.join(bootstrapPath, 'css/bootstrap.css.map'), { destDir: 'assets' });
// Import glyphicons
app.import(path.join(bootstrapPath, 'fonts/glyphicons-halflings-regular.eot'), { destDir: '/fonts' });
app.import(path.join(bootstrapPath, 'fonts/glyphicons-halflings-regular.svg'), { destDir: '/fonts' });
app.import(path.join(bootstrapPath, 'fonts/glyphicons-halflings-regular.ttf'), { destDir: '/fonts' });
app.import(path.join(bootstrapPath, 'fonts/glyphicons-halflings-regular.woff'), { destDir: '/fonts' });
app.import(path.join(bootstrapPath, 'fonts/glyphicons-halflings-regular.woff2'), { destDir: '/fonts'});
}
app.import(path.join(bowerDir, 'moment', 'moment.js'));
// Import css from bootstrap
if (options.importBootstrapJS) {
app.import(path.join(bootstrapPath, 'js/bootstrap.js'));
}
app.import(path.join(
bowerDir,
'eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css'
));
app.import(path.join(
bowerDir,
'eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js'
));
}
};