forked from iron-meteor/iron-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
76 lines (62 loc) · 2.01 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: 'iron:router',
summary: 'Routing specifically designed for Meteor',
version: "1.0.5",
git: "https://github.com/eventedmind/iron-router"
});
Npm.depends({
'body-parser': '1.8.1'
});
Package.on_use(function (api) {
api.versionsFrom('[email protected]');
// meteor dependencies
api.use('underscore');
api.use('webapp', 'server');
api.use('deps', 'client');
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('iron:[email protected]');
// connect like middleware stack for client/server
api.use('iron:[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('iron:[email protected]');
api.add_files('lib/current_options.js');
api.add_files('lib/http_methods.js');
api.add_files('lib/route_controller.js');
api.add_files('lib/route_controller_server.js', 'server');
api.add_files('lib/route_controller_client.js', 'client');
api.add_files('lib/route.js');
api.add_files('lib/router.js');
api.add_files('lib/hooks.js');
api.add_files('lib/helpers.js');
api.add_files('lib/router_client.js', 'client');
api.add_files('lib/body_parser_server.js', 'server');
api.add_files('lib/router_server.js', 'server');
api.add_files('lib/plugins.js');
api.add_files('lib/global_router.js');
api.add_files('lib/templates.html');
// symbol exports
api.export('Router');
api.export('RouteController');
});
Package.on_test(function (api) {
api.use('iron:router');
api.use('tinytest');
api.use('test-helpers');
api.add_files('test/helpers.js');
api.add_files('test/route_test.js');
api.add_files('test/router_test.js');
api.add_files('test/route_controller_test.js');
});