forked from Meteor-Community-Packages/meteor-autoform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
84 lines (76 loc) · 1.81 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
/* 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.0'
})
Package.onUse(function (api) {
api.versionsFrom('[email protected]')
// Dependencies
api.use(
[
'livedata',
'deps',
'templating',
'ui',
'blaze',
'ejson',
'reactive-var',
'reactive-dict',
'random',
'ecmascript',
'mongo',
'momentjs:[email protected]'
],
'client'
)
api.use('[email protected] || 3.0.0', 'client')
api.use(
[
'mrt:[email protected]',
'aldeed:[email protected]',
'aldeed:[email protected]',
'aldeed:[email protected]',
'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')
})