-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
43 lines (34 loc) · 1.54 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: 'dsember-core',
isDevelopingAddon: function() {
return true;
},
//included: function(app) {
// this._super.included(app);
//}
included: function included(app, parentAddon) {
var target = (parentAddon || app);
target.options.sassOptions = target.options.sassOptions || {};
target.options.sassOptions.includePaths = target.options.sassOptions.includePaths || [];
target.options.sassOptions.includePaths.push(
path.join(target.bowerDirectory, 'bootstrap-sass', 'assets', 'stylesheets')
);
target.import(path.join(target.bowerDirectory, 'bootstrap-sass', 'assets', 'fonts', 'bootstrap', 'glyphicons-halflings-regular.eot'), {
destDir: path.join('assets', 'fonts')
});
target.import(path.join(target.bowerDirectory, 'bootstrap-sass', 'assets', 'fonts', 'bootstrap', 'glyphicons-halflings-regular.svg'), {
destDir: path.join('assets', 'fonts')
});
target.import(path.join(target.bowerDirectory, 'bootstrap-sass', 'assets', 'fonts', 'bootstrap', 'glyphicons-halflings-regular.ttf'), {
destDir: path.join('assets', 'fonts')
});
target.import(path.join(target.bowerDirectory, 'bootstrap-sass', 'assets', 'fonts', 'bootstrap', 'glyphicons-halflings-regular.woff2'), {
destDir: path.join('assets', 'fonts')
});
target.import(path.join(target.bowerDirectory, 'moment', 'min', 'moment.min.js'));
target.import(path.join(target.bowerDirectory, 'holderjs', 'holder.min.js'));
}
};