forked from boomfly/meteor-astronomy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
130 lines (123 loc) · 3.01 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
Package.describe({
name: "diavrank95:astronomy",
version: "2.8.0",
summary: "Model layer for Meteor",
git: "https://github.com/diavrank/meteor-astronomy.git"
});
Npm.depends({
lodash: "4.17.11",
'bignumber.js': '9.0.0'
});
Package.onUse(function(api) {
api.versionsFrom("1.3");
api.use(
[
"ecmascript",
"es5-shim",
"ddp",
"mongo",
"check",
"minimongo",
"ejson",
"mdg:[email protected]"
],
["client", "server"]
);
api.mainModule("lib/main.js", ["client", "server"], { lazy: true });
});
////////////////////////////////////////////////////////////////////////////////
Package.onTest(function(api) {
api.use(
[
"practicalmeteor:mocha",
"tinytest",
"ecmascript",
"es5-shim",
"insecure",
"mongo",
"ejson",
"jagi:astronomy",
"promise"
],
["client", "server"]
);
api.addFiles("test/utils.js", ["client", "server"]);
// Core.
api.addFiles(
[
"test/core/inherit.js",
"test/core/extend.js",
"test/core/state.js",
"test/core/ejson.js"
],
["client", "server"]
);
// Modules.
// Modules - Behaviors.
api.addFiles(
["test/modules/behaviors/create.js", "test/modules/behaviors/apply.js"],
["client", "server"]
);
// Modules - Validators.
api.addFiles(
[
"test/modules/validators/create.js",
"test/modules/validators/apply.js",
"test/modules/validators/validate.js",
"test/modules/validators/validate_callback.js"
],
["client", "server"]
);
// Modules - Storage.
api.addFiles(
[
"test/modules/storage/is_new.js",
"test/modules/storage/init.js",
"test/modules/storage/type_field.js",
"test/modules/storage/transform.js",
"test/modules/storage/document_insert.js",
"test/modules/storage/document_update.js",
"test/modules/storage/document_remove.js",
"test/modules/storage/class_insert.js",
"test/modules/storage/class_update.js",
"test/modules/storage/class_remove.js",
"test/modules/storage/reload.js",
"test/modules/storage/copy.js"
],
["client", "server"]
);
// Modules - Events.
api.addFiles(
[
"test/modules/events/order.js",
"test/modules/events/propagation.js",
"test/modules/events/cancelable.js"
],
["client", "server"]
);
// Modules - Fields.
api.addFiles(
[
"test/modules/fields/cast.js",
"test/modules/fields/default.js",
"test/modules/fields/definition.js",
"test/modules/fields/enum.js",
"test/modules/fields/get.js",
"test/modules/fields/merge.js",
"test/modules/fields/optional.js",
"test/modules/fields/raw.js",
"test/modules/fields/set.js"
],
["client", "server"]
);
// Modules - Indexes.
api.addFiles(
[
// 'test/indexes/indexes_definition.js'
],
"server"
);
// Modules - Methods.
api.addFiles(["test/modules/helpers/definition.js"], ["client", "server"]);
});