-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.js
80 lines (67 loc) · 1.95 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
71
72
73
74
75
76
77
78
79
80
Package.describe({
summary: "Meteor's latency-compensated distributed data client",
version: '2.3.1',
documentation: null,
name: 'ddp-client',
});
Npm.depends({
'faye-websocket': '0.11.1',
lolex: '1.4.0',
'permessage-deflate': '0.1.6',
'body-parser': '1.18.2',
});
Package.onUse(function(api) {
api.use(
[
'http',
'check',
'random',
'ejson',
'underscore',
'tracker',
'retry',
'id-map',
'ecmascript',
],
['client', 'server']
);
api.use(['meteorhacks:[email protected]'], 'server');
api.use('callback-hook', ['client', 'server']);
// common functionality
api.use('ddp-common', ['client', 'server']);
api.use('reload', 'client', { weak: true });
// we depend on _diffObjects, _applyChanges,
api.use('diff-sequence', ['client', 'server']);
// _idParse, _idStringify.
api.use('mongo-id', ['client', 'server']);
// For backcompat where things use Package.ddp.DDP, etc
api.export('DDP');
api.mainModule('fusion/client/client.js', 'client');
api.addFiles(['fusion/server/index.js'], 'server');
api.mainModule('server/server.js', 'server');
});
Package.onTest(function(api) {
api.use('livedata', ['client', 'server']);
api.use('mongo', ['client', 'server']);
api.use('test-helpers', ['client', 'server']);
api.use([
'ecmascript',
'underscore',
'tinytest',
'random',
'tracker',
'reactive-var',
'mongo-id',
'diff-sequence',
'ejson',
]);
api.addFiles('test/stub_stream.js');
api.addFiles('test/livedata_connection_tests.js', ['client', 'server']);
api.addFiles('test/livedata_tests.js', ['client', 'server']);
api.addFiles('test/livedata_test_service.js', ['client', 'server']);
api.addFiles('test/random_stream_tests.js', ['client', 'server']);
api.use('http', 'client');
api.addFiles('test/stream_tests.js', 'client');
api.addFiles('test/stream_client_tests.js', 'server');
api.use('check', ['client', 'server']);
});