forked from emberjs/list-view
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
57 lines (46 loc) · 1.4 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-list-view',
treeForVendor: function() {
if(!this.isDevelopingAddon()) {
return;
}
var klassy = new this.Funnel('bower_components', {
srcDir: '/klassy/lib',
files: ['klassy.js'],
destDir: '/'
});
var emberTestHelpers = new this.Funnel('bower_components', {
srcDir: '/ember-test-helpers/lib',
include: [/.js$/],
destDir: '/'
});
var es6EmberTestHelpers = new this.transpileModules(this.mergeTrees([klassy, emberTestHelpers]), {
esperantoOptions: {
_evilES3SafeReExports: true,
strict: true
}
});
var emberTestHelpersAMD = this.concatFiles(es6EmberTestHelpers, {
inputFiles: ['**/*.js'],
outputFile: '/ember-test-helpers.amd.js'
});
var qunitModule = new this.Funnel('bower_components', {
srcDir: '/ember-qunit-source/lib/ember-qunit',
include: [/qunit-module.js$/],
destDir: '/'
});
var es6QunitModule = new this.transpileModules(this.mergeTrees([klassy, qunitModule]), {
esperantoOptions: {
_evilES3SafeReExports: true,
strict: true
}
});
var qunitModuleAMD = this.concatFiles(es6QunitModule, {
inputFiles: ['**/*.js'],
outputFile: '/ember-qunit-module.amd.js'
});
return this.mergeTrees(['vendor', emberTestHelpersAMD, qunitModuleAMD]);
}
};