forked from kadirahq/flow-router
-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.js
94 lines (79 loc) · 3.06 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
Package.describe({
name: 'bensventures:flow-router-ssr',
summary: 'Same as kadira:flow-router, but with SSR support. Not backward compatible, Meteor 1.3+',
version: '3.13.2',
git: 'https://github.com/bensventures/flow-router-ssr.git'
});
Package.onUse(function(api) {
configure(api);
api.export('FlowRouter');
});
Package.onTest(function(api) {
configure(api);
api.use('tinytest');
api.use('check');
api.use('mongo');
api.use('minimongo');
api.use('http');
api.use('random');
// We use accounts-base to get `Meteor.user()`.
// It's used for page caching.
api.use('accounts-base');
api.addFiles('test/_engine/utils.js');
api.addFiles('test/_engine/describe.js');
api.addFiles('test/client/_helpers.js', 'client');
api.addFiles('test/server/_helpers.js', 'server');
api.addFiles('test/client/router.core.spec.js', 'client');
api.addFiles('test/client/router.reactivity.spec.js', 'client');
api.addFiles('test/client/trigger.spec.js', 'client');
api.addFiles('test/client/triggers.js', 'client');
api.addFiles('test/common/loader.spec.js', ['client', 'server']);
api.addFiles('test/common/router.path.spec.js', ['client', 'server']);
api.addFiles('test/common/router.url.spec.js', ['client', 'server']);
api.addFiles('test/common/router.addons.spec.js', ['client', 'server']);
api.addFiles('test/common/route.spec.js', ['client', 'server']);
api.addFiles('test/common/group.spec.js', ['client', 'server']);
api.addFiles('server/__tests__/ssr_context.js', 'server');
api.addFiles('server/__tests__/route.js', 'server');
api.addFiles('server/plugins/__tests__/ssr_data.js', 'server');
api.addFiles('lib/__tests__/group.js', ['client', 'server']);
});
Npm.depends({
"qs": "6.3.0",
"path-to-regexp": "1.7.0",
"cheerio": "0.22.0",
"cookie-parser": "1.4.3",
"deepmerge": "1.3.1",
"htmlparser2": "3.9.2",
"parseurl": "1.3.1",
"url": "0.11.0"
});
function configure(api) {
api.versionsFrom('[email protected]');
api.use('ecmascript', ['client', 'server']);
api.use('underscore');
api.use('tracker');
api.use('reactive-dict');
api.use('reactive-var');
api.use('ddp');
api.use('ejson');
api.use('modules', ['client', 'server']);
api.use('staringatlights:[email protected]', ['client', 'server']);
api.use('meteorhacks:[email protected]', 'server');
api.use('staringatlights:[email protected]');
api.addFiles('lib/router.js', ['client', 'server']);
api.addFiles('lib/group.js', ['client', 'server']);
api.addFiles('lib/route.js', ['client', 'server']);
api.addFiles('client/triggers.js', 'client');
api.addFiles('client/router.js', 'client');
api.addFiles('client/group.js', 'client');
api.addFiles('client/route.js', 'client');
api.addFiles('server/router.js', 'server');
api.addFiles('server/group.js', 'server');
api.addFiles('server/route.js', 'server');
api.addFiles('server/ssr_context.js', 'server');
api.addFiles('lib/_init.js', ['client', 'server']);
api.addFiles('client/_init.js', 'client');
api.addFiles('server/_init.js', 'server');
api.addFiles('server/plugins/ssr_data.js', 'server');
}