forked from LumaPictures/meteor-jquery-datatables
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
84 lines (73 loc) · 2.06 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
Package.describe({
summary: "Sort, page, and filter millions of records. Reactively."
});
Package.on_use(function (api, where) {
api.use([
'coffeescript',
'underscore',
'luma-component'
],[ 'client', 'server' ]);
// for helpers
api.use([
'jquery',
'ui',
'templating',
'spacebars'
], [ 'client' ]);
api.export([
'DataTableMixins',
'DataTableComponent'
], ['client','server']);
/* External Libraries */
api.add_files([
'vendor/DataTables-1.10.0/media/js/jquery.dataTables.min.js',
'vendor/DataTables-1.10.0/extensions/ColVis/js/dataTables.colVis.min.js',
'vendor/DataTables-1.10.0/extensions/ColReorder/js/dataTables.colReorder.min.js'
], ['client']);
/* Mixins */
api.add_files([
'lib/mixins/Base.mixin.coffee',
'lib/mixins/Collection.mixin.coffee',
'lib/mixins/Columns.mixin.coffee',
'lib/mixins/Publish.mixin.coffee',
'lib/mixins/Query.mixin.coffee',
'lib/mixins/Subscription.mixin.coffee',
'lib/mixins/Rows.mixin.coffee'
], [ 'client', 'server' ]);
/* Template */
api.add_files([
'lib/DataTables.html'
], [ 'client' ]);
/* Component */
api.add_files([
'lib/DataTables.component.coffee'
], [ 'client', 'server']);
});
Package.on_test(function (api) {
api.use([
'coffeescript',
'jquery-datatables',
'tinytest',
'test-helpers'
], ['client', 'server']);
/* Fixtures */
api.add_files([
'tests/fixtures/ReactiveData.fixture.coffee',
'tests/fixtures/StaticData.fixture.coffee',
'tests/fixtures/Publish.fixture.coffee'
], [ 'client', 'server' ]);
/* Component */
api.add_files([
'tests/DataTables.component.test.coffee'
], ['client', 'server']);
/* Mixins */
api.add_files([
'tests/mixins/Base.mixin.test.coffee',
'tests/mixins/Collection.mixin.test.coffee',
'tests/mixins/Columns.mixin.test.coffee',
'tests/mixins/Rows.mixin.test.coffee',
'tests/mixins/Publish.mixin.test.coffee',
'tests/mixins/Query.mixin.test.coffee',
'tests/mixins/Subscription.mixin.test.coffee'
], [ 'client', 'server' ]);
});