forked from raytiley/ember-plupload
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
39 lines (34 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-plupload',
included: function (app) {
this._super.included(app);
var config = this.app.project.config(app.env) || {};
var addonConfig = config[this.name] || {};
var debugMode = addonConfig.debug;
if (debugMode === undefined) {
debugMode = process.env.EMBER_ENV === 'development';
}
if (!process.env.EMBER_CLI_FASTBOOT) {
if (debugMode) {
app.import('bower_components/plupload/js/moxie.js');
app.import('bower_components/plupload/js/plupload.dev.js');
} else {
app.import('bower_components/plupload/js/plupload.full.min.js');
}
}
app.import('bower_components/plupload/js/Moxie.swf', {
destDir: 'assets'
});
app.import('bower_components/plupload/js/Moxie.xap', {
destDir: 'assets'
});
app.import('bower_components/dinosheets/dist/dinosheets.amd.js', {
exports: {
'dinosheets': ['default']
}
});
app.import('vendor/styles/ember-plupload.css');
}
};