-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.js
42 lines (34 loc) · 1.16 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
Package.describe({
name: 'emmerge:graviton',
summary: "Transform collection records into Models and define and use relationships between Meteor collections",
git: "https://github.com/emmerge/graviton",
version: '0.0.23'
});
Package.on_use(function (api, where) {
if (api.versionsFrom) { // 0.9.0+ litmus test
api.versionsFrom("0.9.1");
api.use('mongo', ['client', 'server']);
}
api.use(['underscore', 'minimongo', 'peerlibrary:[email protected]_1'], ['client', 'server']);
api.add_files(['lib/relations.js', 'lib/model.js', 'graviton.js'], ['client', 'server']);
if (typeof api.export !== 'undefined') {
api.export("Graviton", ["client", "server"]);
}
});
Package.on_test(function (api) {
api.use(['mongo', 'underscore', 'emmerge:graviton', 'tinytest', 'test-helpers', 'matb33:[email protected]']);
api.add_files([
'test/test-helpers.js',
'test/relation-test.js',
'test/model-test.js',
'test/legacy-test.js',
'test/extension-test.js',
'test/packages-test.js',
'test/incomplete-relation-configs.js',
'test/unit-test.js'
],
['client', 'server']);
api.add_files([
'test/timestamps-test.js'
], 'server');
});