-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.js
More file actions
119 lines (106 loc) · 3.9 KB
/
package.js
File metadata and controls
119 lines (106 loc) · 3.9 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
var both = ['client', 'server'];
var client = 'client';
Package.describe({
name: "wieldo:autoformly",
summary: "Create angular-formly forms with automatic insert and update, and automatic reactive validation.",
version: "0.8.0",
documentation: 'README.md',
git: 'https://github.com/wieldo/meteor-autoformly.git'
});
Package.onUse(function (api) {
var packages = {
use: [
'aldeed:simple-schema@1.1.0',
'aldeed:collection2@2.0.0',
'underscore',
'check',
'angular@1.2.0',
'pbastowski:angular-babel@1.0.9',
'pbastowski:angular2-now@1.1.5',
'mys:angular-template-url@0.0.1',
'formly:angular-formly@7.3.9_3',
'wieldo:angular-formly-validator@1.5.0'
],
imply: [
'mys:angular-template-url',
'pbastowski:angular2-now',
'aldeed:simple-schema',
'aldeed:collection2',
'formly:angular-formly',
'wieldo:angular-formly-validator'
]
};
api.versionsFrom("METEOR@1.0");
api.use(packages.use);
api.imply(packages.imply);
api.addFiles([
'lib/client/main.js',
'lib/client/auto-formly-helpers.js',
'lib/client/auto-formly-parsers.js',
'lib/client/auto-formly.js',
'lib/client/auto-formly-component.ng.html',
'lib/client/auto-formly-component.js',
// parsers
'lib/client/parsers/key.js',
'lib/client/parsers/type.js',
'lib/client/parsers/template-options/label.js',
'lib/client/parsers/template-options/options.js',
'lib/client/parsers/template-options/min-date.js',
'lib/client/parsers/template-options/max-date.js',
'lib/client/parsers/defaultvalue.js',
// validation
'lib/client/parsers/validation/messages.js',
// validators
'lib/client/parsers/validators/required.js',
'lib/client/parsers/validators/minlength.js',
'lib/client/parsers/validators/maxlength.js',
'lib/client/parsers/validators/minnumber.js',
'lib/client/parsers/validators/maxnumber.js',
'lib/client/parsers/validators/pattern.js',
'lib/client/parsers/validators/unique.js',
'lib/client/parsers/validators/allowed.js',
// extend formlyValidator
'lib/client/formly-validator/unique.js'
], client);
api.addFiles([
'lib/schema.js'
], both);
});
Package.onTest(function (api) {
api.use([
'mongo',
'underscore',
'sanjo:jasmine@0.21.0',
'velocity:helpers',
'velocity:console-reporter',
'angular:angular-mocks@1.4.7',
'pbastowski:angular-babel',
'wieldo:autoformly'
]);
api.addFiles([
'tests/client/schema.js',
'tests/client/collection.js'
], both);
api.addFiles([
'tests/client/auto-formly-parsers-spec.js',
'tests/client/auto-formly-spec.js',
// parsers
'tests/client/parsers/key-spec.js',
'tests/client/parsers/type-spec.js',
'tests/client/parsers/defaultvalue-spec.js',
'tests/client/parsers/template-options/label-spec.js',
'tests/client/parsers/template-options/min-date-spec.js',
'tests/client/parsers/template-options/max-date-spec.js',
// parsers validation
'tests/client/parsers/validation/messages-spec.js',
// parsers validators
'tests/client/parsers/validators/required-spec.js',
'tests/client/parsers/validators/pattern-spec.js',
'tests/client/parsers/validators/minnumber-spec.js',
'tests/client/parsers/validators/maxnumber-spec.js',
'tests/client/parsers/validators/minlength-spec.js',
'tests/client/parsers/validators/maxlength-spec.js',
'tests/client/parsers/validators/unique-spec.js',
'tests/client/parsers/validators/allowed-spec.js'
], client);
});