-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.js
70 lines (61 loc) · 1.4 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
70
Package.describe({
summary: "Meteor's latency-compensated distributed data client",
version: '2.3.2',
documentation: null,
});
Npm.depends({
lolex: '2.3.1',
});
Package.onUse(api => {
api.use(
[
'ecmascript',
'check',
'random',
'ejson',
'tracker',
'retry',
'id-map',
'ecmascript',
'callback-hook',
'ddp-common',
'reload',
'socket-stream-client',
// we depend on _diffObjects, _applyChanges,
'diff-sequence',
// _idParse, _idStringify.
'mongo-id',
],
['client', 'server']
);
api.use(['meteorhacks:[email protected]'], 'server');
api.use('reload', 'client', { weak: true });
// For backcompat where things use Package.ddp.DDP, etc
api.export('DDP');
api.mainModule('fusion/client/client.js', 'client');
api.mainModule('fusion/server/index.js', 'server');
});
Package.onTest(api => {
api.use([
'livedata',
'mongo',
'test-helpers',
'ecmascript',
'underscore',
'tinytest',
'random',
'tracker',
'reactive-var',
'mongo-id',
'diff-sequence',
'ejson',
'ddp-common',
'check',
]);
api.use('http', 'client');
api.addFiles('test/stub_stream.js');
api.addFiles('test/livedata_connection_tests.js');
api.addFiles('test/livedata_tests.js');
api.addFiles('test/livedata_test_service.js');
api.addFiles('test/random_stream_tests.js');
});