-
Notifications
You must be signed in to change notification settings - Fork 27
/
package.js
59 lines (47 loc) · 1.18 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
var fs = Npm.require('fs');
var path = Npm.require('path');
Package.describe({
"summary": "A way to inject data to the client with initial HTML",
"version": "2.0.0",
"git": "https://github.com/meteorhacks/inject-data",
"name": "meteorhacks:inject-data"
});
Package.onUse(function(api) {
configure(api);
api.export('InjectData', ['client', 'server']);
});
Package.onTest(function(api) {
configure(api);
api.use('tinytest', ['client', 'server']);
api.use('http', 'server');
api.use('random', 'server');
api.use('meteorhacks:[email protected]', 'server');
api.addFiles([
'tests/utils.js'
], ['client', 'server']);
api.addFiles([
'tests/client.js'
], 'client');
api.addFiles([
'tests/integration.js',
'tests/init.js'
], 'server');
});
function configure (api) {
api.versionsFrom('[email protected]');
api.use(['ejson', 'underscore'], ['server', 'client']);
api.use('jquery', 'client');
api.addFiles([
'lib/inject.html',
], 'server', {isAsset: true});
api.addFiles([
'lib/namespace.js',
'lib/utils.js',
], ['client', 'server']);
api.addFiles([
'lib/server.js'
], 'server');
api.addFiles([
'lib/client.js'
], 'client');
}