forked from kahmali/meteor-restivus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
43 lines (35 loc) · 1.16 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
Package.describe({
name: 'nimble:restivus',
summary: 'Create authenticated REST APIs in Meteor 0.9+. Setup CRUD endpoints for Collections.',
version: '0.8.1',
git: 'https://github.com/kahmali/meteor-restivus.git'
});
Package.onUse(function (api) {
// Minimum Meteor version
api.versionsFrom('METEOR@0.9.0');
// Meteor dependencies
api.use('check');
api.use('coffeescript');
api.use('underscore');
api.use('accounts-base@1.2.0');
api.use('simple:json-routes@1.0.2');
api.addFiles('lib/auth.coffee', 'server');
api.addFiles('lib/iron-router-error-to-response.js', 'server');
api.addFiles('lib/route.coffee', 'server');
api.addFiles('lib/restivus.coffee', 'server');
// Exports
api.export('Restivus', 'server');
});
Package.onTest(function (api) {
// Meteor dependencies
api.use('practicalmeteor:munit');
api.use('test-helpers');
api.use('nimble:restivus');
api.use('http');
api.use('coffeescript');
api.use('accounts-base');
api.use('accounts-password');
api.addFiles('test/api_tests.coffee', 'server');
api.addFiles('test/route_unit_tests.coffee', 'server');
api.addFiles('test/authentication_tests.coffee', 'server');
});