forked from Meteor-Community-Packages/meteor-tabular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
46 lines (39 loc) · 1.36 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
/* global Package, Npm */
Package.describe({
name: 'aldeed:tabular',
summary: 'Datatables for large or small datasets in Meteor',
version: '1.4.0',
git: 'https://github.com/aldeed/meteor-tabular.git'
});
Npm.depends({
datatables: '1.10.7'
});
Package.onUse(function(api) {
api.versionsFrom(['[email protected]', '[email protected]']);
api.use(['check', 'underscore', 'mongo', 'blaze', 'templating', 'reactive-var', 'tracker']);
// jquery is a weak reference in case you want to use a different package or
// pull it in another way, but regardless you need to make sure it is loaded
// before any tabular tables are rendered
api.use(['jquery'], 'client', {weak: true});
api.use(['meteorhacks:[email protected]'], ['client', 'server'], {weak: true});
api.export('Tabular');
api.addFiles('common.js');
api.addFiles('server/tabular.js', 'server');
api.addFiles([
'.npm/package/node_modules/datatables/media/js/jquery.dataTables.js',
'client/lib/dataTables.bootstrap.js',
'client/lib/dataTables.bootstrap.css',
'client/tabular.html',
'client/util.js',
'client/tableRecords.js',
'client/tableInit.js',
'client/pubSelector.js',
'client/tabular.js',
// images
'images/sort_asc.png',
'images/sort_asc_disabled.png',
'images/sort_both.png',
'images/sort_desc.png',
'images/sort_desc_disabled.png'
], 'client');
});