-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy pathpackage.js
43 lines (33 loc) · 858 Bytes
/
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
Package.describe({
name: 'mizzao:timesync',
summary: 'NTP-style time synchronization between server and client',
version: '0.6.0',
git: "https://github.com/Meteor-Community-Packages/meteor-timesync"
});
Package.onUse(function (api) {
api.versionsFrom(["1.12", "2.3"]);
api.use([
'check',
'tracker',
'http'
], 'client');
api.use(['webapp'], 'server');
api.use(['ecmascript']);
// Our files
api.addFiles('server/index.js', 'server');
api.addFiles('client/index.js', 'client');
api.export('TimeSync', 'client');
api.export('SyncInternals', 'client', {
testOnly: true
});
});
Package.onTest(function (api) {
api.use([
'ecmascript',
'tinytest',
'test-helpers'
]);
api.use(['tracker', 'underscore'], 'client');
api.use('mizzao:timesync');
api.addFiles('tests/client.js', 'client');
});