-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
package.js
executable file
·69 lines (59 loc) · 1.64 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: '3.0.0-rc.0',
git: 'https://github.com/Meteor-Community-Packages/meteor-tabular.git'
});
Npm.depends({
'datatables.net': '2.0.8'
});
Package.onUse(function(api) {
api.versionsFrom([ '1.3', '2.8.0', '3.0-rc.4']);
api.use([
'check',
'ecmascript',
'underscore',
'mongo',
'[email protected] || 3.0.0-rc300.2',
'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(['[email protected] || 3.0.0 || 3.0.1-alpha300.10'], '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) {
api.versionsFrom([ '1.3', '2.8.0', '3.0-rc.4']);
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' );
});