forked from Meteor-Community-Packages/meteor-tabular
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
executable file
·69 lines (59 loc) · 1.52 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
/* global Package, Npm */
Package.describe({
name: 'aldeed:tabular',
summary: 'Datatables for large or small datasets in Meteor',
version: '2.1.0',
git: 'https://github.com/aldeed/meteor-tabular.git'
});
Npm.depends({
'datatables.net': '1.10.12'
});
Package.onUse(function(api) {
api.versionsFrom(['[email protected]']);
api.use([
'check',
'ecmascript',
'underscore',
'mongo',
'blaze',
'templating',
'reactive-var',
'tracker',
'session'
]);
// 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.mainModule('server/main.js', 'server');
api.mainModule('client/main.js', 'client');
api.export('Tabular');
// images
api.addAssets([
'images/sort_asc.png',
'images/sort_asc_disabled.png',
'images/sort_both.png',
'images/sort_desc.png',
'images/sort_desc_disabled.png'
], 'client');
});
Package.onTest(function(api) {
// Tiny Test
api.use(['aldeed:tabular', 'tinytest']);
api.use([
'anti:fake',
'check',
'underscore',
'reactive-var',
'tracker',
'ecmascript'
]);
// Load this first:
api.addFiles('tests/reusedFunctions.js', 'client');
api.addFiles([
'tests/util.js',
'tests/mongoDBQuery.js',
'tests/utilIntegration.js'
], 'client' );
});