-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.js
35 lines (33 loc) · 850 Bytes
/
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
Package.describe({
name: 'horka:swipebox',
summary: 'Swipebox image viewer plugin for Meteor.',
version: '1.0.0',
git: 'https://github.com/horka/horka-swipebox'
});
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.export('Swipebox');
api.addFiles([
'horka:swipebox.js',
'swipebox/css/swipebox.min.css',
'swipebox/js/jquery.swipebox.min.js',
], ['client']);
if(api.addAssets) { //meteor 1.2
api.addAssets([
'swipebox/img/loader.gif',
'swipebox/img/icons.png',
'swipebox/img/icons.svg'
], ['client']);
} else {
api.addFiles([
'swipebox/img/loader.gif',
'swipebox/img/icons.png',
'swipebox/img/icons.svg'
], ['client']);
}
});
Package.onTest(function(api) {
api.use('tinytest');
api.use('horka:swipebox');
api.addFiles('horka:swipebox-tests.js');
});