forked from zvictor/meteor-mongo-server
-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.js
37 lines (29 loc) · 803 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
Package.describe({
summary: "Expose mongodb aggregation framework (mapReduce, aggregate and distinct), to SERVER side only.",
version: '1.0.1',
name: 'monbro:mongodb-mapreduce-aggregation',
git: 'https://github.com/monbro/meteor-mongodb-mapreduce-aggregation'
});
// Npm.depends({mongodb: "1.3.17"});
function configurePackage(api) {
if(api.versionsFrom) {
api.versionsFrom('METEOR@1.0.1');
}
// Core Dependencies
api.use(
[
'meteor'
]
);
api.use('coffeescript', 'server');
api.use('underscore', 'server');
api.addFiles('server.coffee', 'server');
}
Package.onUse(function(api) {
configurePackage(api);
});
Package.onTest(function(api) {
configurePackage(api);
api.use('tinytest');
// api.addFiles('tests/tests.js'); // no tests yet
});