forked from lukejagodzinski/meteor-astronomy-validators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
73 lines (61 loc) · 3.12 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
Package.describe({
name: 'jagi:astronomy-validators',
version: '0.10.7',
summary: 'Validators for Meteor Astronomy',
git: 'https://github.com/jagi/meteor-astronomy-validators.git'
});
Package.onUse(function(api) {
api.versionsFrom('1.1.0.2');
api.use('jagi:astronomy@0.10.5');
api.use('jagi:reactive-map@0.2.1');
api.use('underscore');
api.use('ui');
api.imply('jagi:astronomy');
// Module.
api.addFiles('lib/module/global.js', ['client', 'server']);
api.addFiles('lib/module/error.js', ['client', 'server']);
api.addFiles('lib/module/utils.js', ['client', 'server']);
api.addFiles('lib/module/validator_definition.js', ['client', 'server']);
api.addFiles('lib/module/validator.js', ['client', 'server']);
api.addFiles('lib/module/init_module.js', ['client', 'server']);
api.addFiles('lib/module/init_class.js', ['client', 'server']);
api.addFiles('lib/module/init_instance.js', ['client', 'server']);
api.addFiles('lib/module/module.js', ['client', 'server']);
// Type validators.
api.addFiles('lib/validators/type/string.js', ['client', 'server']);
api.addFiles('lib/validators/type/number.js', ['client', 'server']);
api.addFiles('lib/validators/type/boolean.js', ['client', 'server']);
api.addFiles('lib/validators/type/array.js', ['client', 'server']);
api.addFiles('lib/validators/type/object.js', ['client', 'server']);
api.addFiles('lib/validators/type/date.js', ['client', 'server']);
api.addFiles('lib/validators/type/email.js', ['client', 'server']);
// Existence validators.
api.addFiles('lib/validators/existence/required.js', ['client', 'server']);
api.addFiles('lib/validators/existence/null.js', ['client', 'server']);
api.addFiles('lib/validators/existence/not_null.js', ['client', 'server']);
api.addFiles('lib/validators/existence/has.js', ['client', 'server']);
// Size validators.
api.addFiles('lib/validators/size/length.js', ['client', 'server']);
api.addFiles('lib/validators/size/min_length.js', ['client', 'server']);
api.addFiles('lib/validators/size/max_length.js', ['client', 'server']);
api.addFiles('lib/validators/size/gt.js', ['client', 'server']);
api.addFiles('lib/validators/size/gte.js', ['client', 'server']);
api.addFiles('lib/validators/size/lt.js', ['client', 'server']);
api.addFiles('lib/validators/size/lte.js', ['client', 'server']);
// Comparison validators.
api.addFiles('lib/validators/comparison/choice.js', ['client', 'server']);
api.addFiles('lib/validators/comparison/unique.js', ['client', 'server']);
api.addFiles('lib/validators/comparison/equal.js', ['client', 'server']);
api.addFiles('lib/validators/comparison/equal_to.js', ['client', 'server']);
api.addFiles('lib/validators/comparison/regexp.js', ['client', 'server']);
// Logical operators.
api.addFiles('lib/validators/logical/and.js', ['client', 'server']);
api.addFiles('lib/validators/logical/or.js', ['client', 'server']);
api.export(['Validators'], ['client', 'server']);
});
Package.onTest(function(api) {
api.use('tinytest');
api.use('insecure');
api.use('jagi:astronomy-validators@0.10.7');
api.addFiles('test/validators.js', ['client', 'server']);
});