forked from Meteor-Community-Packages/meteor-simple-schema
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
25 lines (21 loc) · 868 Bytes
/
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
Package.describe({
summary: "A simple schema validation object with reactivity. Used by collection2 and autoform."
});
Npm.depends({
"string": "1.6.0"
});
Package.on_use(function(api) {
api.use(['deps', 'underscore', 'check'], ['client', 'server']);
api.add_files('string.js', 'client');
api.add_files(['mongo-object.js', 'simple-schema.js', 'simple-schema-context.js'], ['client', 'server']);
if (typeof api.export !== "undefined") {
//backwards compatibility with pre-0.6.5 meteor
api.export(['SimpleSchema', 'SchemaRegEx', 'MongoObject'], ['client', 'server']);
}
});
Package.on_test(function(api) {
api.use('simple-schema', ['client', 'server']);
api.use('test-helpers', ['client', 'server']);
api.use('tinytest', ['client', 'server']);
api.add_files(["simple-schema-tests.js", "mongo-object-tests.js"], ['client', 'server']);
});