forked from Meteor-Community-Packages/meteor-user-status
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
47 lines (35 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
Package.describe({
name: "mizzao:user-status",
summary: "User connection and idle state tracking for Meteor",
version: "0.6.2",
git: "https://github.com/mizzao/meteor-user-status.git"
});
Package.onUse( function(api) {
api.versionsFrom("[email protected]");
api.use('accounts-base');
api.use(['coffeescript', 'underscore']);
api.use('mongo');
api.use(['deps', 'jquery'], 'client');
// 0.2.2 is the first 0.9-compatible version
api.use('mizzao:[email protected]');
api.addFiles('monitor.coffee', 'client');
api.addFiles('status.coffee', 'server');
api.export('UserStatus'); // on both
api.export('MonitorInternals', 'client', {testOnly: true});
api.export('StatusInternals', 'server', {testOnly: true});
});
Package.onTest( function(api) {
api.use('mizzao:user-status');
api.use('mizzao:timesync');
// Why do we have to repeat ourselves here, and not able to use api.imply?
api.use(['accounts-base', 'accounts-password']);
api.use(['coffeescript', 'underscore']);
api.use('test-helpers');
api.use('tinytest');
api.addFiles("tests/insecure_login.js");
api.addFiles('tests/setup.coffee');
// Just some unit tests here. Use the test app otherwise.
api.addFiles('tests/monitor_tests.coffee', 'client');
api.addFiles('tests/status_tests.coffee', 'server');
api.addFiles('tests/server_client_tests.coffee');
});