forked from Meteor-Community-Packages/meteor-autoform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
59 lines (57 loc) · 2.01 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
Package.describe({
name: "autoform",
summary: "Provides UI components that allow you to easily create forms with automatic insert and update events, and automatic reactive validation."
});
Package.on_use(function(api) {
// Dependencies
api.use(['simple-schema', 'check']);
api.use(['livedata', 'underscore', 'deps', 'templating', 'handlebars', 'moment', 'ui'], 'client');
// Weak dependencies
api.use(['collection2', 'reload'], ['client'], {weak: true});
// Imply SS to make sure SimpleSchema object is available to app
api.imply('simple-schema');
// Exports
api.export('AutoForm', 'client');
api.export('Utility', 'client', {testOnly: true});
// Files
api.add_files(['autoform-common.js']);
api.add_files([
// bootstrap3 Template
'templates/bootstrap3/bootstrap3.html',
'templates/bootstrap3/bootstrap3.js',
// bootstrap3-span Template
'templates/bootstrap3-span/bootstrap3-span.html',
'templates/bootstrap3-span/bootstrap3-span.js',
// bootstrap3-horizontal Template
'templates/bootstrap3-horizontal/bootstrap3-horizontal.html',
'templates/bootstrap3-horizontal/bootstrap3-horizontal.js',
'templates/bootstrap3-horizontal/bootstrap3-horizontal.css',
// plain Template
'templates/plain/plain.html',
'templates/plain/plain.js',
// plain-fieldset Template
'templates/plain-fieldset/plain-fieldset.html',
'templates/plain-fieldset/plain-fieldset.js',
// plain-span Template
'templates/plain-span/plain-span.html',
'templates/plain-span/plain-span.js',
// Core Files
'autoform.html',
'utility.js',
'form-preserve.js',
'autoform-hooks.js',
'autoform-inputs.js',
'autoform-formdata.js',
'autoform-arrays.js',
'autoform.js',
'autoform-helpers.js',
'autoform-validation.js',
'autoform-events.js',
'autoform-api.js'
], 'client');
});
Package.on_test(function (api) {
api.use(['autoform', 'tinytest', 'underscore']);
api.add_files('tests/utility-tests.js');
api.add_files('tests/autoform-tests.js');
});