-
Notifications
You must be signed in to change notification settings - Fork 37
/
package.js
57 lines (52 loc) · 2.23 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
/***************************************************************************
### Copyright (C) 2014-2017 by Vaughn Iverson
### fileCollection is free software released under the MIT/X11 license.
### See included LICENSE file for details.
***************************************************************************/
var currentVersion = '1.3.8';
Package.describe({
summary: 'Collections that efficiently store files using MongoDB GridFS, with built-in HTTP support',
name: 'vsivsi:file-collection',
version: currentVersion,
git: 'https://github.com/vsivsi/meteor-file-collection.git'
});
Npm.depends({
// latest mongodb driver is 2.2.x, but early revs, currently seems broken
mongodb: '2.1.21',
'gridfs-locking-stream': '1.1.1',
'gridfs-locks': '1.3.4',
dicer: '0.2.5',
async: '2.1.4',
express: '4.14.1',
'cookie-parser': '1.4.3',
// Version 2.x of through2 is Streams3, so don't go there yet!
through2: '0.6.5'
});
Package.onUse(function(api) {
api.use('[email protected]_1', ['server','client']);
api.use('[email protected]', 'server');
api.use('[email protected]', ['server', 'client']);
api.use('[email protected]', 'server');
api.use('[email protected]', ['server', 'client']);
api.addFiles('resumable/resumable.js', 'client');
api.addFiles('src/gridFS.coffee', ['server','client']);
api.addFiles('src/server_shared.coffee', 'server');
api.addFiles('src/gridFS_server.coffee', 'server');
api.addFiles('src/resumable_server.coffee', 'server');
api.addFiles('src/http_access_server.coffee', 'server');
api.addFiles('src/resumable_client.coffee', 'client');
api.addFiles('src/gridFS_client.coffee', 'client');
api.export('FileCollection');
});
Package.onTest(function (api) {
api.use('vsivsi:file-collection@' + currentVersion, ['server', 'client']);
api.use('[email protected]_1', ['server', 'client']);
api.use('[email protected]', ['server', 'client']);
api.use('[email protected]', ['server','client']);
api.use('[email protected]', ['server','client']);
api.use('[email protected]',['server','client']);
api.use('[email protected]', ['server', 'client']);
api.use('[email protected]', ['server', 'client']);
api.use('[email protected]', 'client');
api.addFiles('test/file_collection_tests.coffee', ['server', 'client']);
});