-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (28 loc) · 802 Bytes
/
Copy pathindex.js
File metadata and controls
33 lines (28 loc) · 802 Bytes
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
'use strict';
/**
* Istanbul instrumentation for the addon's own trees.
*
* `ember-cli-code-coverage` is a devDependency of this repository and is not
* installed in consuming applications, so it is only required when a coverage
* run has explicitly asked for it. Every other build — including every consumer
* build — gets an empty plugin list and is unaffected.
*
* @return {Array} babel plugins
*/
function coverageBabelPlugins() {
if (process.env.COVERAGE !== 'true') {
return [];
}
return require('ember-cli-code-coverage').buildBabelPlugin();
}
module.exports = {
name: require('./package').name,
options: {
babel: {
plugins: [...coverageBabelPlugins()],
},
},
isDevelopingAddon() {
return true;
},
};