-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
package.js
53 lines (41 loc) · 1.33 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
/* eslint-disable no-undef */
Package.describe({
name: 'mizzao:user-status',
summary: 'User connection and idle state tracking for Meteor',
version: '1.2.0',
git: 'https://github.com/Meteor-Community-Packages/meteor-user-status.git'
});
Package.onUse((api) => {
api.versionsFrom(['1.7.0.5', '2.7', '2.8.1', '2.15']);
api.use('ecmascript');
api.use('accounts-base');
api.use('check');
api.use('mongo');
api.use('ddp');
api.use('tracker', 'client');
api.use('mizzao:timesync@0.5.4');
api.export('MonitorInternals', 'client', {
testOnly: true
});
api.export('StatusInternals', 'server', {
testOnly: true
});
api.mainModule('client/monitor.js', 'client');
api.mainModule('server/status.js', 'server');
});
Package.onTest((api) => {
api.use('ecmascript');
api.use('mizzao:user-status');
api.use('mizzao:timesync@0.5.4');
api.use(['accounts-base', 'accounts-password']);
api.use(['random', 'tracker']);
api.use('test-helpers');
api.use('tinytest');
api.addFiles('tests/insecure_login.js');
api.addFiles('tests/setup.js');
// Just some unit tests here. Use the test app otherwise.
api.addFiles('tests/monitor_tests.js', 'client');
api.addFiles('tests/status_tests.js', 'server');
api.addFiles('tests/server_tests.js', 'server');
api.addFiles('tests/client_tests.js', 'client');
});