forked from gregory/meteor-simple-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
61 lines (56 loc) · 1.44 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
Package.describe({
name: "aldeed:simple-schema",
summary:
"A simple schema validation object with reactivity. Used by collection2 and autoform.",
version: "1.5.4",
git: "https://github.com/aldeed/meteor-simple-schema.git",
});
Package.onUse(function (api) {
if (api.versionsFrom) {
api.use("deps@1.0.0");
api.use("underscore@1.0.0");
api.use("check@1.0.0");
api.use("random@1.0.0");
} else {
api.use(["deps", "underscore", "check", "random"]);
}
api.use("mdg:validation-error@0.2.0", { unordered: true });
api.addFiles([
"string-polyfills.js",
"string-humanize.js",
"mongo-object.js",
"simple-schema-utility.js",
"simple-schema.js",
"simple-schema-validation.js",
"simple-schema-validation-new.js",
"simple-schema-context.js",
]);
api.export(["SimpleSchema", "MongoObject"], ["client", "server"]);
api.export("humanize", { testOnly: true });
});
Package.onTest(function (api) {
if (api.versionsFrom) {
api.use("aldeed:simple-schema");
api.use("tinytest@1.0.0");
api.use("test-helpers@1.0.0");
api.use("underscore@1.0.0");
api.use("check@1.0.0");
} else {
api.use([
"simple-schema",
"tinytest",
"test-helpers",
"underscore",
"check",
]);
}
api.addFiles(
[
"simple-schema-tests.js",
"mongo-object-tests.js",
"humanize-tests.js",
"validation-error-tests.js",
],
["client", "server"]
);
});