-
Notifications
You must be signed in to change notification settings - Fork 53
/
package.js
executable file
·106 lines (85 loc) · 3 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Package.describe({
name: "cultofcoders:grapher",
version: "1.5.0",
// Brief, one-line summary of the package.
summary: "Grapher is a data fetching layer on top of Meteor",
// URL to the Git repository containing the source code for this package.
git: "https://github.com/cult-of-coders/grapher",
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: "README.md"
});
const npmPackages = {
"sift": "15.0.0",
"dot-object": "1.9.0",
"lodash.clonedeep": "4.5.0",
"deep-extend": "0.6.0",
}
Package.onUse(function (api) {
Npm.depends(npmPackages);
api.versionsFrom(["2.3.1", "2.6.1", "2.7.3", "2.8.1", "2.9.1", "3.0-beta.4"]);
var packages = [
"ecmascript",
"underscore",
"promise",
"check",
"reactive-var",
"mongo",
"matb33:collection-hooks@1.3.1",
"reywood:publish-composite@1.8.8",
"dburles:mongo-collection-instances@0.4.0",
"peerlibrary:subscription-scope@0.5.0",
"herteby:denormalize@0.6.7"
];
api.use(packages);
api.mainModule("main.client.js", "client");
api.mainModule("main.server.js", "server");
});
Package.onTest(function (api) {
api.use("cultofcoders:grapher");
Npm.depends({
...npmPackages,
chai: "4.3.4"
});
var packages = [
"random",
"ecmascript",
"underscore",
"matb33:collection-hooks@1.3.1",
"reywood:publish-composite@1.8.7",
"dburles:mongo-collection-instances@0.4.0",
"peerlibrary:subscription-scope@0.5.0",
"herteby:denormalize@0.6.7",
"mongo"
];
api.use(packages);
api.use("tracker");
api.use(["meteortesting:mocha"]);
// LINKS
api.addFiles("lib/links/tests/main.js", "server");
api.addFiles("lib/links/tests/client.test.js", "client");
// EXPOSURE
api.addFiles("lib/exposure/testing/server.js", "server");
api.addFiles("lib/exposure/testing/client.js", "client");
// QUERY
api.addFiles("lib/query/testing/bootstrap/index.js");
// When you play with tests you should comment this to make tests go faster.
api.addFiles("lib/query/testing/bootstrap/fixtures.js", "server");
api.addFiles("lib/query/testing/server.test.js", "server");
api.addFiles("lib/query/testing/client.test.js", "client");
// NAMED QUERY
api.addFiles("lib/namedQuery/testing/bootstrap/both.js");
api.addFiles("lib/namedQuery/testing/bootstrap/client.js", "client");
api.addFiles("lib/namedQuery/testing/bootstrap/server.js", "server");
// REACTIVE COUNTS
api.addFiles("lib/query/counts/testing/server.test.js", "server");
api.addFiles("lib/query/counts/testing/client.test.js", "client");
// NAMED QUERIES
api.addFiles("lib/namedQuery/testing/server.test.js", "server");
api.addFiles("lib/namedQuery/testing/client.test.js", "client");
// hypernova
api.addFiles("lib/query/hypernova/testing/assembler.test.js", "server");
api.addFiles("lib/query/hypernova/testing/processVirtualNode.test.js", "server");
// GRAPHQL
api.addFiles("lib/graphql/testing/index.js", "server");
});