forked from mainmatter/qunit-dom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
32 lines (26 loc) · 799 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
25
26
27
28
29
30
31
32
/* eslint-env node */
'use strict';
const Funnel = require('broccoli-funnel');
const MergeTrees = require('broccoli-merge-trees');
module.exports = {
name: 'qunit-dom',
included() {
this._super.included.apply(this, arguments);
this.import('vendor/qunit-dom.js', { type: 'test' });
this.import('vendor/overwrite-qunit-dom-root-element.js', { type: 'test' });
},
treeForVendor(vendorTree) {
let qunitPluginTree = new Funnel(`${__dirname}/dist`, {
files: ['qunit-dom.js', 'qunit-dom.js.map'],
});
return new MergeTrees([vendorTree, qunitPluginTree]);
},
treeForAddonTestSupport() {
return new Funnel(`${__dirname}/vendor`, {
files: ['dummy-module.js'],
getDestinationPath() {
return 'qunit-dom/index.js';
},
});
},
};