-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.js
executable file
·62 lines (54 loc) · 1.75 KB
/
package.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
58
59
60
61
62
Package.describe({
name: 'lmieulet:meteor-coverage',
version: '4.1.0',
summary: 'Server and client coverage for Meteor',
git: 'https://github.com/serut/meteor-coverage',
documentation: 'README.md',
debugOnly: true // this package is not included on prod
});
const dependencies = {
'istanbul-lib-coverage': '2.0.1',
'istanbul-lib-report': '2.0.2',
'istanbul-reports': '2.0.1',
'body-parser': '1.18.3',
'mkdirp': '0.5.1',
'remap-istanbul': '0.6.4'
};
Package.onUse(function (api) {
api.versionsFrom(['2.3']);
api.use(['ecmascript']);
api.use('webapp', 'server');
api.use('http', 'client');
// Add datasets
api.addAssets('conf/default-coverage.json', 'server');
// Istanbul assets files - because we do not have the link to these files anymore in the istanbul v1.0
api.addAssets([
'assets/vendor/prettify.css',
'assets/vendor/prettify.js',
'assets/base.css',
'assets/sort-arrow-sprite.png',
'assets/sorter.js',
'assets/block-navigation.js'
], 'server');
api.mainModule('server/index.js', 'server');
api.mainModule('client/methods.js', 'client');
Npm.depends(dependencies);
});
Package.onTest(function (api) {
api.use('ecmascript');
api.use('lmieulet:meteor-legacy-coverage@0.2.0', 'server');
api.use('http', 'client');
api.use('webapp', 'server');
api.use(['lmieulet:meteor-coverage']);
api.use(['meteortesting:mocha']);
// New meteor 12/2018 unknown issue
api.addFiles(['client/methods.e2e.tests.js', 'client/methods.unit.tests.js', 'client/client.instrumentation.tests.js'], 'client');
api.mainModule('server/tests.js', 'server');
api.mainModule('client/main.tests.js', 'client');
Npm.depends({
...dependencies,
'chai': '4.2.0',
'sinon': '7.1.1',
'sinon-chai': '3.2.0'
});
});