forked from Meteor-Community-Packages/ground-db
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
55 lines (46 loc) · 1.37 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
Package.describe({
name: "ground:db",
version: "0.3.14-rc.3",
summary: "Ground Meteor.Collections offline",
git: "https://github.com/GroundMeteor/db.git"
});
Package.onUse(function (api) {
api.versionsFrom('1.2');
api.use([
'meteor',
'underscore',
'minimongo',
'ejson',
'ground:[email protected]',
'ground:[email protected]',
//'ground:[email protected]', // Its implied by ground:util
'ground:[email protected]',
'raix:[email protected]',
'raix:[email protected]',
'raix:[email protected]'
], ['client', 'server']);
// Make sure any storage adapters are loaded first
// api.use([
// 'ground:localstorage'
// ], 'client', { weak: true });
api.export('Ground');
api.export('GroundDB');
api.use(['tracker', 'dispatch:[email protected]'], 'client');
//api.use([], 'server');
//api.use(['localstorage', 'ejson'], 'client');
api.addFiles([
'groundDB.client.js',
'wrap.collection.js',
'wrap.eventemitter.js',
'wrap.proto.eventemitter.js',
], 'client');
api.addFiles('groundDB.server.js', 'server');
});
Package.onTest(function (api) {
api.use('ground:db', ['client']);
api.use('test-helpers', 'client');
api.use(['tinytest', 'underscore', 'ejson', 'ordered-dict',
'random', 'tracker']);
api.addFiles('groundDB.client.tests.js', 'client');
api.addFiles('groundDB.server.tests.js', 'server');
});