forked from serut/meteor-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
executable file
·62 lines (51 loc) · 1.45 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: '0.5.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
});
Package.onUse(function(api) {
api.versionsFrom('[email protected]');
api.use(['ecmascript', 'meteorhacks:[email protected]', 'underscore'], 'server');
api.use("modules");
// 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']
, 'server');
api.addFiles([
'server/log.js',
'server/conf.js',
'server/core.js',
'server/handlers.js',
'server/routes.js',
'server/instrumenter.js',
'server/source-map.js',
'server/coverage-data.js',
'server/main.js',
], 'server');
api.addFiles([
'client/methods.js'
], 'client');
api.export("CoverageData", 'server');
});
Npm.depends({
"istanbul-api": "1.0.0-alpha.13",
'body-parser': '1.15.0'
});
Package.onTest(function (api) {
api.use('lmieulet:meteor-coverage');
api.use('jquery', 'client');
api.use('tinytest');
api.addFiles('tests/methods.js', 'client');
api.addFiles([
'tests/tests.js'
], 'server');
});