-
Notifications
You must be signed in to change notification settings - Fork 116
/
package.js
47 lines (39 loc) · 1.32 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
Package.describe({
name: 'nimble:restivus',
summary: 'Create authenticated REST APIs in Meteor 0.9+ via HTTP/HTTPS. Setup CRUD endpoints for Collections.',
version: '0.8.12',
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-password@1.3.3');
api.use('simple:json-routes@2.1.0');
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('underscore');
api.use('accounts-base');
api.use('accounts-password');
api.use('mongo');
api.addFiles('lib/route.coffee', 'server');
api.addFiles('test/api_tests.coffee', 'server');
api.addFiles('test/route_unit_tests.coffee', 'server');
api.addFiles('test/authentication_tests.coffee', 'server');
api.addFiles('test/user_hook_tests.coffee', 'server');
});