-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathpackage.js
60 lines (47 loc) · 1.51 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
Package.describe({
name: "mizzao:partitioner",
summary: "Transparently divide a meteor app into different instances shared between groups of users.",
version: "0.6.0-beta.1",
git: "https://github.com/mizzao/meteor-partitioner.git"
});
Package.onUse(function (api) {
api.versionsFrom(["1.12.1", '2.3.6']);
// Client & Server deps
api.use([
'accounts-base',
'underscore',
'[email protected]_3 || 2.4.1',
'check',
'ddp', // Meteor.publish available
'mongo' // Mongo.Collection available
]);
api.use("matb33:[email protected]");
api.addFiles('common.coffee');
api.addFiles('grouping.coffee', 'server');
api.addFiles('grouping_client.coffee', 'client');
api.export(['Partitioner', 'Grouping']);
// Package-level variables that should not be exported
// See http://docs.meteor.com/#/full/coffeescript
api.export(['ErrMsg', 'Helpers'], {testOnly: true});
api.export('TestFuncs', {testOnly: true});
});
Package.onTest(function (api) {
api.use("mizzao:partitioner");
api.use([
'accounts-base',
'accounts-password', // For createUser
'[email protected]_3 || 2.4.1',
'underscore',
'ddp', // Meteor.publish available
'mongo', // Mongo.Collection available
'tracker' // Deps/Tracker available
]);
api.use([
'tinytest',
'test-helpers'
]);
api.addFiles("tests/insecure_login.js");
api.addFiles('tests/hook_tests.coffee');
api.addFiles('tests/grouping_index_tests.coffee', 'server');
api.addFiles('tests/grouping_tests.coffee');
});