forked from meteorhacks/cluster
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.js
67 lines (59 loc) · 1.65 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
Package.describe({
"summary": "Clustering solution for Meteor with load balancing and service discovery.",
"version": "1.6.9",
"git": "https://github.com/meteorhacks/cluster.git",
"name": "meteorhacks:cluster"
});
Npm.depends({
"cookies": "0.7.0",
"http-proxy": "1.16.2",
"portscanner": "2.1.1",
"mongodb": "2.2.22"
});
Package.onTest(function(api) {
configurePackage(api);
api.use('tinytest');
api.use('mongo');
api.use('random');
api.use('practicalmeteor:sinon@1.10.3_2');
api.addFiles([
'tests/server/utils.js',
'tests/server/api.js',
'tests/server/worker_pool.js',
'tests/server/discovery_backends/mongo/store.js',
'tests/server/discovery_backends/mongo/discovery.js',
'tests/server/balancer/utils.js',
'tests/server/balancer/route.js',
'tests/server/balancer/workers.js',
], 'server');
});
Package.onUse(function(api) {
configurePackage(api);
api.export('Cluster');
});
function configurePackage(api) {
api.versionsFrom('METEOR@0.9.2');
api.use(['webapp'], 'server');
api.use([
'ddp', 'underscore'
], ['server', 'client']);
api.addFiles([
'lib/namespace.js',
'lib/connection_watcher.js',
], ['server', 'client']);
api.addFiles([
'lib/server/api.js',
'lib/server/discovery_backends/mongo/store.js',
'lib/server/discovery_backends/mongo/discovery.js',
'lib/server/utils.js',
'lib/server/worker_pool.js',
'lib/server/balancer/namespace.js',
'lib/server/balancer/utils.js',
'lib/server/balancer/workers.js',
'lib/server/balancer/route.js',
'lib/server/auto_connect.js'
], ['server']);
api.addFiles([
'lib/client/api.js'
], ['client']);
}