forked from meteorhacks/meteor-ssr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.js
36 lines (32 loc) · 822 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
Package.describe({
"summary": "Server Side Rendering for Meteor with Blaze",
"version": "2.1.1",
"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]_3'
], 'server');
api.addFiles([
'test/base.js',
'test/jade.js'
], 'server');
});
function configurePackage(api) {
api.versionsFrom('[email protected]');
api.use(['blaze', 'spacebars', 'spacebars-compiler'], 'server');
api.use('[email protected]_3', { weak: true });
api.addFiles([
'lib/overrides.js',
'lib/template.js',
'lib/dynamic.js',
'lib/api.js',
], 'server');
}