forked from AddJam/ember-cli-pickadate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
24 lines (21 loc) · 854 Bytes
/
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
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-cli-pickadate',
isDevelopingAddon: function() { return false; },
included: function(app) {
var options = app.options[this.name] || {};
this._super.included(app);
if (!options.theme) {
options.theme = 'default';
}
if(!process.env.EMBER_CLI_FASTBOOT) {
app.import(app.bowerDirectory + '/pickadate/lib/picker.js');
app.import(app.bowerDirectory + '/pickadate/lib/picker.date.js');
app.import(app.bowerDirectory + '/pickadate/lib/picker.time.js');
}
app.import(app.bowerDirectory + '/pickadate/lib/themes/' + options.theme + '.css');
app.import(app.bowerDirectory + '/pickadate/lib/themes/' + options.theme + '.date.css');
app.import(app.bowerDirectory + '/pickadate/lib/themes/' + options.theme + '.time.css');
}
};