-
Notifications
You must be signed in to change notification settings - Fork 80
/
package.js
67 lines (59 loc) · 1.81 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.5.0",
"http-proxy": "1.8.1",
"portscanner": "1.0.0",
// mongodb@1.4.32 with binary modules removed!
// Stolen from Meteor's mongo package. see: http://goo.gl/GJJQ8e
"mongodb": "https://github.com/meteor/node-mongodb-native/tarball/634759e6326dc19a228df66ddb309285532f3b8a"
});
Package.onTest(function(api) {
configurePackage(api);
api.use('tinytest');
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']);
}