forked from meteorhacks/kadira
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
69 lines (62 loc) · 1.58 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
63
64
65
66
67
68
69
var path = Npm.require('path');
var fs = Npm.require('fs');
Package.describe({
"summary": "Performance Monitoring for Meteor"
});
Npm.depends({
"debug": "0.7.4",
"usage": "0.4.1"
});
Package.on_use(function(api) {
configurePackage(api);
api.export(['Kadira']);
});
Package.on_test(function(api) {
configurePackage(api);
api.use([
'tinytest',
'test-helpers'
], 'server');
api.add_files([
'tests/_helpers/globals.js',
'tests/_helpers/helpers.js',
'tests/_helpers/init.js',
'tests/ping.js',
'tests/hijack/user.js',
'tests/hijack/email.js',
'tests/hijack/base.js',
'tests/hijack/async.js',
'tests/hijack/http.js',
'tests/hijack/db.js',
'tests/hijack/subscriptions.js',
'tests/models/methods.js',
'tests/models/pubsub.js',
'tests/models/system.js',
'tests/tracer_store.js',
'tests/tracer.js'
], 'server');
});
function configurePackage(api) {
api.use(['minimongo', 'livedata', 'mongo-livedata', 'ejson', 'underscore', 'http', 'email', 'random'], ['server']);
api.add_files([
'lib/retry.js',
'lib/utils.js',
'lib/ntp.js',
'lib/models/0model.js',
'lib/models/methods.js',
'lib/models/pubsub.js',
'lib/models/system.js',
'lib/kadira.js',
'lib/tracer.js',
'lib/tracer_store.js',
'lib/hijack/wrap_session.js',
'lib/hijack/wrap_subscription.js',
'lib/hijack/session.js',
'lib/hijack/db.js',
'lib/hijack/http.js',
'lib/hijack/email.js',
'lib/hijack/async.js',
'lib/auto_connect.js'
], 'server');
api.add_files(['lib/client/route.js'], 'client')
}