-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.js
42 lines (35 loc) · 1.01 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
'use strict';
const path = require('path');
const merge = require('lodash.merge');
let defaults = {
import: {
css: true,
javascript: true
},
source: {
css: 'node_modules/semantic-ui-calendar/dist',
javascript: 'node_modules/semantic-ui-calendar/dist'
}
};
module.exports = {
name: require('./package').name,
included: function (app) {
let options = merge({}, defaults, app.options['ember-semantic-ui-calendar']);
if (options.import.css) {
app.import({
development: path.join(options.source.css, 'calendar.css'),
production: path.join(options.source.css, 'calendar.min.css')
});
app.import({
development: 'vendor/ember-semantic-ui-calendar.css',
production: 'vendor/ember-semantic-ui-calendar.min.css'
});
}
if (options.import.javascript) {
app.import({
development: path.join(options.source.javascript, 'calendar.js'),
production: path.join(options.source.javascript, 'calendar.min.js')
});
}
}
};