-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathindex.js
23 lines (21 loc) · 1.04 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
'use strict';
var fs = require('fs');
module.exports = {
name: 'ember-cli-ember-table',
included: function(app) {
var jqueryuiPrefix ="";
this._super.included(app);
app.import('vendor/ember-table.css');
app.import(app.bowerDirectory + '/antiscroll/antiscroll.css');
app.import(app.bowerDirectory + '/antiscroll/antiscroll.js');
app.import(app.bowerDirectory + '/jquery-mousewheel/jquery.mousewheel.js');
/* jquery-ui 1.11 and jquery-ui 1.10 have different folder structure */
if (fs.existsSync(app.bowerDirectory + '/jquery-ui/ui/jquery.ui.core.js'))
jqueryuiPrefix = "jquery.ui.";
app.import(app.bowerDirectory + '/jquery-ui/ui/' + jqueryuiPrefix + 'core.js');
app.import(app.bowerDirectory + '/jquery-ui/ui/' + jqueryuiPrefix + 'widget.js');
app.import(app.bowerDirectory + '/jquery-ui/ui/' + jqueryuiPrefix + 'mouse.js');
app.import(app.bowerDirectory + '/jquery-ui/ui/' + jqueryuiPrefix + 'resizable.js');
app.import(app.bowerDirectory + '/jquery-ui/ui/' + jqueryuiPrefix + 'sortable.js');
}
};