forked from kadirahq/flow-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
71 lines (56 loc) · 2.13 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
Package.describe({
name: 'meteorhacks:flow-router',
summary: 'Carefully Designed Client Side Router for Meteor',
version: '1.16.0',
git: 'https://github.com/meteorhacks/flow-router.git'
});
Npm.depends({
'page':'1.6.3',
'qs':'3.1.0'
});
Package.onUse(function(api) {
configure(api);
api.export('FlowRouter');
});
Package.onTest(function(api) {
configure(api);
api.use('tinytest');
api.use('mongo');
api.use('http');
api.use('practicalmeteor:sinon');
api.use('meteorhacks:fast-render');
api.use('meteorhacks:inject-data');
api.addFiles('test/common/fast_render_route.js', ['client', 'server']);
api.addFiles('test/client/_helpers.js', 'client');
api.addFiles('test/server/_helpers.js', 'server');
api.addFiles('test/client/loader.spec.js', 'client');
api.addFiles('test/client/route.reactivity.spec.js', 'client');
api.addFiles('test/client/router.core.spec.js', 'client');
api.addFiles('test/client/router.subs_ready.spec.js', 'client');
api.addFiles('test/client/router.reactivity.spec.js', 'client');
api.addFiles('test/client/group.spec.js', 'client');
api.addFiles('test/client/trigger.spec.js', 'client');
api.addFiles('test/client/triggers.js', 'client');
api.addFiles('test/server/plugins/fast_render.js', 'server');
api.addFiles('test/common/router.path.spec.js', ['client', 'server']);
});
function configure(api) {
api.versionsFrom('1.0');
api.use('underscore');
api.use('tracker');
api.use('reactive-dict');
api.use('reactive-var');
api.use('meteorhacks:[email protected]', ['client', 'server'], {weak: true});
api.use('cosmos:[email protected]', 'client');
api.addFiles('client.browserify.js', 'client');
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('client/_init.js', 'client');
api.addFiles('server/router.js', 'server');
api.addFiles('server/group.js', 'server');
api.addFiles('server/route.js', 'server');
api.addFiles('server/_init.js', 'server');
api.addFiles('server/plugins/fast_render.js', 'server');
}