forked from kadirahq/fast-render
-
Notifications
You must be signed in to change notification settings - Fork 19
/
package.js
87 lines (79 loc) · 1.96 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
/* global Package Npm */
Package.describe({
summary:
'Render your app before the DDP connection even comes alive - magic?',
version: '3.3.0',
git: 'https://github.com/abecks/meteor-fast-render',
name: 'staringatlights:fast-render',
})
Npm.depends({
'cookie-parser': '1.4.4',
})
Package.onUse(function (api) {
api.versionsFrom('[email protected]')
api.mainModule('lib/client/fast_render.js', 'client')
api.mainModule('lib/server/namespace.js', 'server')
api.use('staringatlights:[email protected]', ['client', 'server'])
api.use('chuangbo:[email protected]', 'client')
api.use('meteorhacks:[email protected]', 'server')
api.use('lamhieu:[email protected]', 'server')
api.use(
[
'minimongo',
'livedata',
'ejson',
'underscore',
'webapp',
'routepolicy',
'accounts-base',
'random',
],
['server']
)
api.use(['minimongo', 'ejson', 'accounts-base'], ['client'])
api.addFiles(
[
'lib/server/utils.js',
'lib/server/routes.js',
'lib/server/publish_context.js',
'lib/server/context.js',
'lib/server/ssr_helper.js',
],
'server'
)
api.addFiles(
[
'lib/client/id_tools.js',
'lib/client/debugger.js',
'lib/client/ddp_update.js',
'lib/client/auth.js',
'lib/client/ssr_helper.js',
'lib/client/boot.js',
],
'client'
)
api.use(['ecmascript', 'server-render'], ['client', 'server'])
// api.export('FastRender', ['client', 'server'])
// api.export('__init_fast_render', ['client'])
})
Package.onTest(function (api) {
api.use(['ecmascript'], ['client', 'server'])
api.use('staringatlights:fast-render', ['client', 'server'])
api.use('tinytest', ['client', 'server'])
api.use('http', 'server')
api.use('random', ['server', 'client'])
api.use('mongo', ['server', 'client'])
api.use('server-render', ['server', 'client'])
api.addFiles(
[
'tests/utils.js',
'tests/client/fast_render.js',
'tests/client/ddp_update.js',
],
'client'
)
api.addFiles(
['tests/server/context.js', 'tests/server/integration.js'],
'server'
)
})