forked from Meteor-Community-Packages/meteor-simple-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
54 lines (46 loc) · 1.38 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
Package.describe({
name: "aldeed:simple-schema",
summary: "A simple schema validation object with reactivity. Used by collection2 and autoform.",
version: "1.5.3",
git: "https://github.com/aldeed/meteor-simple-schema.git"
});
Package.on_use(function(api) {
if (api.versionsFrom) {
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
} else {
api.use(['deps', 'underscore', 'check', 'random']);
}
api.use('mdg:[email protected]', {unordered: true});
api.add_files([
'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.on_test(function(api) {
if (api.versionsFrom) {
api.use("aldeed:simple-schema");
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
api.use('[email protected]');
} else {
api.use(["simple-schema", "tinytest", "test-helpers", "underscore", "check"]);
}
api.add_files([
"simple-schema-tests.js",
"mongo-object-tests.js",
"humanize-tests.js",
"validation-error-tests.js"
], ['client', 'server']);
});