-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
34 lines (27 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
'use strict';
var path = require('path');
var Funnel = require('broccoli-funnel');
module.exports = {
name: require('./package').name,
included: function() {
this._super.included.apply(this, arguments);
const app = this._findHost();
const config = app.options['ember-cli-fullscreen-js'] || {};
// If specified, include the extra library files
if (config.includeJqueryEasings) {
app.import('vendor/vendors/easings.js');
}
if (config.includeScrollOverflow) {
app.import('vendor/vendors/scrolloverflow.js');
}
app.import('vendor/dist/fullpage.js');
app.import('vendor/dist/fullpage.min.css');
app.import('vendor/dist/fullpage.extensions.min.js');
},
treeForVendor() {
let fullpageJSPath = path.join(this.app.project.root, 'node_modules', 'fullpage.js');
return new Funnel(fullpageJSPath, {
files: ['dist/fullpage.js', 'dist/fullpage.min.css','dist/fullpage.extensions.min.js', 'vendors/scrolloverflow.js', 'vendors/easings.js']
});
},
};