-
-
Notifications
You must be signed in to change notification settings - Fork 328
/
Copy pathpackage.js
103 lines (94 loc) · 2.34 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/* eslint-env meteor */
Package.describe({
name: 'aldeed:autoform',
summary:
'Easily create forms with automatic insert and update, and automatic reactive validation.',
git: 'https://github.com/aldeed/meteor-autoform.git',
version: '8.0.0'
})
Npm.depends({
'mongo-object': '3.0.1'
})
Package.onUse(function (api) {
api.versionsFrom(['3.0.1'])
// Dependencies
api.use([
'ejson',
'reactive-var',
'reactive-dict',
'random',
'ecmascript',
'mongo',
'blaze@3.0.0',
'templating@1.4.4',
'jquery@3.0.0'
])
api.use(
[
'momentjs:moment@2.30.1',
'mrt:moment-timezone@0.2.1',
'aldeed:collection2@4.0.4',
'aldeed:simple-schema@2.0.0',
'aldeed:moment-timezone@0.4.0',
'reload'
],
'client',
{ weak: true }
)
// Exports
api.export('AutoForm', 'client')
// adding the core files in order to keep it backwards-compatible with
// extensions and themes
api.addFiles([
'./utility.js',
'./form-preserve.js',
'./autoform-hooks.js',
'./autoform-formdata.js',
'./autoform-arrays.js',
'./autoform.js',
'./autoform-validation.js',
'./autoform-inputs.js',
'./autoform-api.js'
], 'client')
// api.mainModule('main.js', 'client')
})
Package.onTest(function (api) {
api.versionsFrom(['2.8.0', '3.0.1'])
// Running the tests requires a dummy project in order to
// resolve npm dependencies and the test env dependencies.
api.use([
'ecmascript',
'random',
'tracker',
'mongo',
'blaze@3.0.0',
'templating@1.4.4',
'meteortesting:mocha@3.2.0'
])
api.use([
'aldeed:collection2@4.0.4',
'momentjs:moment@2.30.1'
], 'client', { weak: true })
api.use([
'aldeed:autoform@8.0.0',
'aldeed:moment-timezone',
'aldeed:simple-schema@2.0.0'
], 'client')
api.addFiles([
'tests/setup.tests.js',
'tests/utility.tests.js',
'tests/common.tests.js',
'tests/FormPreserve.tests.js',
'tests/FormData.tests.js',
'tests/Hooks.tests.js',
'tests/ArrayTracker.tests.js',
'tests/autoform-inputs.tests.js',
'tests/autoform-helpers.tests.js',
'tests/autoform-validation.tests.js',
'tests/autoform-api.tests.js',
// component specific
'tests/components/quickForm/quickFormUtils.tests.js',
// input types
'tests/inputTypes/value-converters.tests.js'
], 'client')
})