-
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("METEOR@0.9.2");
api.use([
'mongo',
'underscore',
'meteorhacks:meteorx@1.3.1',
'meteorhacks:picker@1.0.2',
'chuangbo:cookie@1.1.0'
]);
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});
}