-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
76 lines (62 loc) · 2.12 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Package.describe({
name: 'polygonwood:router',
summary: 'Routing specifically designed for Meteor',
version: '2.0.0',
git: 'https://github.com/iron-meteor/iron-router'
});
Npm.depends({
'body-parser': '1.12.4' // parse request bodies
});
Package.onUse(function (api) {
api.versionsFrom('3.0.2');
// meteor dependencies
api.use('underscore');
api.use('webapp', 'server'); // used only on server side
api.use('tracker', 'client'); // used only on client side
api.use('ui');
api.use('templating');
// for cloning
api.use('ejson');
// for dynamic scoping with environment variables
api.use('meteor');
// main namespace and utils
api.use('iron:[email protected]');
api.imply('iron:core');
// ui layout
api.use('polygonwood:[email protected]');
// connect like middleware stack for client/server
api.use('polygonwood:[email protected]');
// client and server side url utilities and compiling
api.use('iron:[email protected]');
// for reactive urls and pushState in the browser
api.use('iron:[email protected]');
// for RouteController which inherits from this
api.use('polygonwood:[email protected]');
api.addFiles('lib/current_options.js');
api.addFiles('lib/http_methods.js');
api.addFiles('lib/route_controller.js');
api.addFiles('lib/route_controller_server.js', 'server');
api.addFiles('lib/route_controller_client.js', 'client');
api.addFiles('lib/route.js');
api.addFiles('lib/router.js');
api.addFiles('lib/hooks.js');
api.addFiles('lib/helpers.js');
api.addFiles('lib/router_client.js', 'client');
api.addFiles('lib/body_parser_server.js', 'server');
api.addFiles('lib/router_server.js', 'server');
api.addFiles('lib/plugins.js');
api.addFiles('lib/global_router.js'); // client and server
api.addFiles('lib/templates.html');
// symbol exports
api.export('Router');
api.export('RouteController');
});
Package.onTest(function (api) {
api.use('polygonwood:router');
api.use('tinytest');
api.use('test-helpers');
api.addFiles('test/helpers.js');
api.addFiles('test/route_test.js');
api.addFiles('test/router_test.js');
api.addFiles('test/route_controller_test.js');
});