-
Notifications
You must be signed in to change notification settings - Fork 36
/
package.js
39 lines (32 loc) · 907 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
36
37
38
39
Package.describe({
"summary": "Subscriptions Manager for Meteor",
"version": "1.6.4",
"git": "https://github.com/meteorhacks/subs-manager.git",
"name": "meteorhacks:subs-manager"
});
Package.on_use(function(api) {
configurePackage(api);
api.export(['SubsManager']);
});
Package.on_test(function(api) {
configurePackage(api);
api.use(['tinytest', 'mongo-livedata', 'session'], ['client', 'server']);
api.add_files([
'tests/init.js',
], ['server', 'client']);
api.add_files([
'tests/options.js',
'tests/core.js',
'tests/error.js'
], ['client']);
});
function configurePackage(api) {
if(api.versionsFrom) {
api.versionsFrom('[email protected]');
}
api.use(['deps', 'underscore', 'ejson'], ['client', 'server']);
api.use('meteorhacks:[email protected]', 'client', {weak: true});
api.add_files([
'lib/sub_manager.js',
], ['client', 'server']);
}