-
Notifications
You must be signed in to change notification settings - Fork 23
/
package.js
57 lines (49 loc) · 1.14 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
Package.describe({
"summary": 'Sikka - A Firewall for Meteor Apps',
"name": "meteorhacks:sikka",
"version": "1.0.1",
"git": "https://github.com/meteorhacks/sikka.git",
});
Npm.depends({
"request": "2.53.0",
"cookies": "0.5.0"
});
Package.onUse(function (api, where) {
configure(api);
api.export('Sikka', 'server')
});
Package.onTest(function (api, where) {
configure(api);
api.use('tinytest');
api.use('practicalmeteor:sinon');
api.addFiles([
'test/server/utils.js',
'test/server/config.js',
'test/server/core.js',
'test/server/session_hooks.js',
'test/server/routes.js'
], 'server');
});
function configure(api) {
api.versionsFrom("[email protected]");
api.use([
'mongo',
'underscore',
'meteorhacks:[email protected]',
'meteorhacks:[email protected]',
'chuangbo:[email protected]'
]);
api.addFiles([
'lib/server/init.js',
'lib/server/config.js',
'lib/server/core.js',
'lib/server/session_hooks.js',
'lib/server/routes.js'
], 'server');
api.addFiles([
'lib/client/core.js'
], 'client');
api.addFiles([
'lib/server/captcha_page.html'
], 'server', {isAsset: true});
}