-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
45 lines (39 loc) · 1.42 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
/**
* Copyright Greg Bowering <[email protected]> 2014 All Rights Reserved
*/
Package.describe({
name: 'gb96:zlib',
summary: 'zlib compression library wrapped for meteor. Includes blocking versions of async methods.',
version: '0.2.2',
git: 'https://github.com/gb96/meteor-zlib.git'
});
Package.onUse(function(api) {
api.versionsFrom('[email protected]');
// peerlibrary:blocking used to create blocking versions of zlib aynchronous methods.
// can possibly be removed when nodejs v.0.11 is stable since it will include
// syncrhonous zlib convenience methods.
api.use('peerlibrary:[email protected]', 'server');
api.addFiles('gb96:zlib.js', 'server');
// Export async convenience methods from zlib:
api.export('deflate', 'server');
api.export('inflate', 'server');
api.export('gzip', 'server');
api.export('gunzip', 'server');
api.export('deflateRaw', 'server');
api.export('inflateRaw', 'server');
api.export('unzip', 'server');
// Export wrapped (blocking) convenience methods:
api.export('deflateSync', 'server');
api.export('inflateSync', 'server');
api.export('gzipSync', 'server');
api.export('gunzipSync', 'server');
api.export('deflateRawSync', 'server');
api.export('inflateRawSync', 'server');
api.export('unzipSync', 'server');
});
// Unit tests:
Package.onTest(function(api) {
api.use('tinytest');
api.use('gb96:zlib', 'server');
api.addFiles('gb96:zlib-tests.js', 'server');
});