-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
82 lines (71 loc) · 2.54 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
var client = 'client';
Package.describe({
name: "wieldo:angular-formly-validator",
summary: "Use set of built-in validators in your project. This module extends angular-formly-transformer.",
version: "1.5.0",
documentation: 'README.md',
git: 'https://github.com/wieldo/angular-formly-validator.git'
});
Package.onUse(function (api) {
var packages = {
use: [
'angular:[email protected]',
'pbastowski:[email protected]',
'formly:[email protected]_3',
'wieldo:[email protected]'
],
imply: [
'formly:angular-formly',
'wieldo:angular-formly-transformer'
]
};
api.versionsFrom("[email protected]");
api.use(packages.use);
api.imply(packages.imply);
api.addFiles([
'lib/client/main.js',
'lib/client/formly-validator.js',
// validators
'lib/client/validators/required.js',
'lib/client/validators/minlength.js',
'lib/client/validators/maxlength.js',
'lib/client/validators/minnumber.js',
'lib/client/validators/maxnumber.js',
'lib/client/validators/pattern.js',
'lib/client/validators/notpattern.js',
'lib/client/validators/match.js',
'lib/client/validators/notmatch.js',
'lib/client/validators/contain.js',
'lib/client/validators/notcontain.js',
'lib/client/validators/allowed.js',
'lib/client/validators/notallowed.js'
], client);
});
Package.onTest(function (api) {
api.use([
'pbastowski:[email protected]',
'sanjo:[email protected]',
'velocity:helpers',
'velocity:console-reporter',
'angular:[email protected]',
'wieldo:angular-formly-validator'
]);
api.addFiles([
'tests/client/formly-validator-spec.js',
'tests/client/validators/test-utils.js',
// validators
'tests/client/validators/required-spec.js',
'tests/client/validators/maxlength-spec.js',
'tests/client/validators/minlength-spec.js',
'tests/client/validators/pattern-spec.js',
'tests/client/validators/notpattern-spec.js',
'tests/client/validators/maxnumber-spec.js',
'tests/client/validators/minnumber-spec.js',
'tests/client/validators/contain-spec.js',
'tests/client/validators/notcontain-spec.js',
'tests/client/validators/allowed-spec.js',
'tests/client/validators/notallowed-spec.js'
], client);
});