forked from meteorhacks/meteor-ssr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.js
38 lines (34 loc) · 894 Bytes
/
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
Package.describe({
summary: 'Server Side Rendering for Meteor with Blaze',
version: '2.2.2',
git: 'https://github.com/meteorhacks/meteor-ssr',
name: 'meteorhacks:ssr',
});
Package.onUse(function (api) {
configurePackage(api);
api.export(['Template', 'SSR'], ['server']);
});
Package.onTest(function (api) {
configurePackage(api);
api.use([
'tinytest',
'mquandalle:[email protected]',
], 'server');
api.addFiles([
'test/base.js',
'test/jade.js',
], 'server');
});
function configurePackage(api) {
api.versionsFrom('[email protected]');
api.use('mquandalle:[email protected]', { weak: true });
api.use('ecmascript', 'server');
api.use(['blaze', 'spacebars', 'spacebars-compiler', 'mongo', 'random'], 'server');
api.mainModule('lib/namespace.js', ['server']);
api.addFiles([
'lib/overrides.js',
'lib/template.js',
'lib/dynamic.js',
'lib/api.js',
], 'server');
}