forked from alphasights/ember-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
52 lines (39 loc) · 1.36 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
/* eslint-env node*/
'use strict';
const path = require('path');
module.exports = {
name: 'ember-calendar',
included: function(app) {
this._super.included(app);
var options = app.options.emberCalendar || {};
if (!('includeFontAwesomeAssets' in options)) {
options.includeFontAwesomeAssets = true;
}
if (options.includeFontAwesomeAssets) {
app.import(path.join(app.bowerDirectory, 'fontawesome/fonts/fontawesome-webfont.ttf'), {
destDir: 'fonts'
});
app.import(path.join(app.bowerDirectory, 'fontawesome/fonts/fontawesome-webfont.woff'), {
destDir: 'fonts'
});
app.import(path.join(app.bowerDirectory, 'fontawesome/fonts/fontawesome-webfont.woff2'), {
destDir: 'fonts'
});
app.import(path.join(app.bowerDirectory, 'fontawesome/fonts/fontawesome-webfont.svg'), {
destDir: 'fonts'
});
app.import(path.join(app.bowerDirectory, 'fontawesome/fonts/fontawesome-webfont.eot'), {
destDir: 'fonts'
});
}
app.import(path.join(app.bowerDirectory, 'interact/interact.js'));
app.import('vendor/shims/interact.js');
app.import('vendor/jstz.js');
app.import('vendor/shims/jstz.js');
if (app.env === 'test') {
app.import(path.join(app.bowerDirectory, 'jquery-simulate/jquery.simulate.js'), {
type: 'test'
});
}
}
};