-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.js
81 lines (66 loc) · 2.7 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
Package.describe({
name: 'aadams:fine-router',
summary: 'Carefully Designed Client Side Router for Meteor',
version: '2.12.1',
git: 'https://github.com/aadamsx/fine-router.git'
});
Npm.depends({
// In order to support IE9, we had to fork pagejs and apply
// this PR: https://github.com/visionmedia/page.js/pull/288
'page':'https://github.com/kadirahq/page.js/archive/34ddf45ea8e4c37269ce3df456b44fc0efc595c6.tar.gz',
'qs':'5.2.0'
});
Package.onUse(function(api) {
configure(api);
api.export('FineRouter');
});
Package.onTest(function(api) {
configure(api);
api.use('tinytest');
api.use('check');
api.use('mongo');
api.use('http');
api.use('random');
api.use('meteorhacks:fast-render');
api.use('meteorhacks:inject-data');
api.use('tmeasday:html5-history-api');
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']);
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']);
});
function configure(api) {
api.versionsFrom('METEOR@1.3-rc.1');
api.use('underscore');
api.use('tracker');
api.use('reactive-dict');
api.use('reactive-var');
api.use('ejson');
api.use('modules');
api.use('meteorhacks:fast-render@2.14.0', ['client', 'server'], {weak: true});
api.addFiles('client/modules.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');
api.addFiles('lib/router.js', ['client', 'server']);
}