-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
46 lines (37 loc) · 1 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
Package.describe({
name: 'clinical:json-routes',
version: '2.3.0',
// Brief, one-line summary of the package.
summary: 'The simplest way to define server-side routes that return JSON',
// URL to the Git repository containing the source code for this package.
git: 'https://github.com/clinical-meteor/meteor-rest',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, set this field to null.
documentation: 'README.md',
});
Npm.depends({
'connect': '2.30.2',
'connect-route': '0.1.5',
});
Package.onUse(function (api) {
api.versionsFrom('1.0');
api.use([
'underscore',
'webapp',
], 'server');
api.addFiles([
'json-routes.js',
'middleware.js',
], 'server');
api.export([
'JsonRoutes',
'RestMiddleware',
], 'server');
});
Package.onTest(function (api) {
api.use('tinytest');
api.use('test-helpers');
api.use('simple:json-routes');
api.use('http');
api.addFiles('json-routes-tests.js');
});