forked from serut/meteor-coverage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
executable file
·49 lines (41 loc) · 1.41 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
Package.describe({
name: 'lmieulet:meteor-coverage',
version: '1.1.4',
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(['meteorhacks:[email protected]'], 'server');
api.use(['ecmascript']);
// 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.mainModule('server/index.js', 'server');
api.mainModule('client/methods.js', 'client');
});
Npm.depends({
'istanbul-api': '1.1.0-alpha.1',
'body-parser': '1.15.2',
'homedir': '0.6.0',
'minimatch': '3.0.3',
'mkdirp': '0.5.1',
'remap-istanbul': '0.6.4'
});
Package.onTest(function (api) {
api.use('ecmascript');
api.use(['lmieulet:[email protected]'], ['server']);
api.use(['practicalmeteor:mocha', 'practicalmeteor:chai', 'practicalmeteor:sinon', 'lmieulet:meteor-coverage']);
api.use('jquery', 'client');
api.mainModule('server/tests.js', 'server');
api.mainModule('client/main.tests.js', 'client');
});