forked from Meteor-Community-Packages/meteor-autoform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
88 lines (79 loc) · 1.86 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
/* 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: '7.0.1'
})
Npm.depends({
'mongo-object': '3.0.1'
});
Package.onUse(function (api) {
api.versionsFrom('METEOR@1.3')
// Dependencies
api.use(
[
'livedata',
'deps',
'templating',
'ui',
'blaze',
'ejson',
'reactive-var',
'reactive-dict',
'random',
'ecmascript',
'mongo',
'momentjs:moment@2.10.6'
],
'client'
)
api.use('jquery@1.11.10 || 3.0.0', 'client')
api.use(
[
'mrt:moment-timezone@0.2.1',
'aldeed:collection2-core@2.0.0',
'aldeed:collection2@3.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')
})
Package.onTest(function (api) {
// Running the tests requires a dummy project in order to
// resolve npm dependencies and the test env dependencies.
api.use(['meteortesting:browser-tests', 'meteortesting:mocha'])
api.use(
[
'ecmascript',
'tracker',
'blaze',
'templating',
'mongo',
'momentjs:moment',
'aldeed:autoform',
'aldeed:moment-timezone'
],
'client'
)
// api.addFiles(["tests/utility-tests.js", "tests/autoform-tests.js"]);
api.mainModule('tests/testSuite.tests.js', 'client')
})