-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.js
63 lines (52 loc) · 1.73 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
Package.describe({
name: "medbook:primary-collections",
version: "0.0.19", // lol
// Brief, one-line summary of the package.
summary: "Primary collections and schemas for MedBook",
// URL to the Git repository containing the source code for this package.
git: "https://github.com/UCSC-MedBook/MedBook-primary-collections",
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: "README.md"
});
// we use mime in Blobs.js but I guess we don't need a version number (??)
// Npm.depends({"mime": "1.2.0"});
// var mime = Meteor.npmRequire("mime");
function addAndExport (api, name) {
api.addFiles("collections/" + name + ".js");
api.export(name);
}
Package.onUse(function(api) {
api.versionsFrom("1.1.0.3");
api.use([
"aldeed:simple-schema@1.3.3",
"aldeed:collection2@2.3.3",
"aldeed:autoform@4.2.2 || 5.0.0 || 5.1.2",
"underscore",
"medbook:namespace@0.0.2",
"matb33:collection-hooks@0.8.1",
]);
api.addFiles("globals.js");
addAndExport(api, "Studies");
addAndExport(api, "DataSets");
addAndExport(api, "GenomicExpression");
addAndExport(api, "Forms");
addAndExport(api, "Records");
addAndExport(api, "SampleGroups");
addAndExport(api, "GeneSets");
addAndExport(api, "GeneSetGroups");
// utility collections
addAndExport(api, "Jobs");
// deprecated: Blobs
api.use("cfs:gridfs@0.0.33");
api.use("cfs:standard-packages@0.5.9");
addAndExport(api, "Blobs");
api.export("BlobStore", "server");
api.addFiles("attachToNamespace.js");
api.addFiles("utility.js");
});
Package.onTest(function(api) {
// nope
// api.use("tinytest");
// api.addFiles("primary_collections_tests.js");
});