-
Notifications
You must be signed in to change notification settings - Fork 80
/
package.js
77 lines (63 loc) · 1.98 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
var fs = Npm.require('fs');
var path = Npm.require('path');
Package.describe({
"summary": "Render your app before the DDP connection even comes alive - magic?",
"version": "2.16.0",
"git": "https://github.com/meteorhacks/fast-render",
"name": "meteorhacks:fast-render"
});
Npm.depends({
"connect": "2.13.0"
});
Package.onUse(function(api) {
configure(api);
api.export('FastRender', ['client', 'server']);
api.export('__init_fast_render', ['client']);
});
Package.onTest(function(api) {
configure(api);
api.use('tinytest', ['client', 'server']);
api.use('http', 'server');
api.use('random', ['server', 'client']);
api.use('mongo', ['server', 'client']);
api.addFiles([
'tests/utils.js'
], ['client', 'server']);
api.addFiles([
'tests/client/fast_render.js',
'tests/client/ddp_update.js'
], 'client');
api.addFiles([
'tests/server/context.js',
'tests/server/integration.js'
], 'server');
});
function configure (api) {
api.versionsFrom('[email protected]');
api.use('meteorhacks:[email protected]', ['client', 'server']);
api.use('iron:[email protected] || 1.0.0', ['client', 'server'], {weak: true});
api.use('chuangbo:[email protected]', 'client');
api.use('meteorhacks:[email protected]', 'server');
api.use('meteorhacks:[email protected]', 'server');
api.use(['minimongo', 'livedata', 'ejson', 'underscore', 'webapp', 'routepolicy', 'accounts-base', 'random'], ['server']);
api.use(['minimongo', 'underscore', 'deps', 'ejson', 'accounts-base'], ['client']);
api.addFiles([
'lib/utils.js'
], ['client', 'server']);
api.addFiles([
'lib/server/namespace.js',
'lib/server/utils.js',
'lib/server/routes.js',
'lib/server/publish_context.js',
'lib/server/context.js',
'lib/server/iron_router_support.js',
], 'server');
api.addFiles([
'lib/client/id_tools.js',
'lib/client/fast_render.js',
'lib/client/debugger.js',
'lib/client/ddp_update.js',
'lib/client/auth.js',
'lib/client/boot.js'
], 'client');
}