-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.js
43 lines (36 loc) · 983 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
39
40
41
42
43
Package.describe({
name: 'maka:http',
summary: "Make HTTP calls to remote servers",
version: '1.1.10',
git: 'https://github.com/maka-io/maka-http.git'
});
Npm.depends({
'@types/meteor': '2.9.7',
'@maka/types': '1.1.5',
'node-fetch': '3.3.2'
});
Package.onUse(function (api) {
// Minimum Meteor version
api.versionsFrom(['2.0', '3.0-rc.0']);
api.use([
'ecmascript',
'fetch',
'url',
'modules',
'typescript'
]);
api.mainModule('src/http-client.ts', 'client');
api.mainModule('src/http-server.ts', 'server');
});
Package.onTest(function (api) {
api.use('ecmascript');
api.use('webapp', 'server');
api.use('underscore');
api.use('random');
api.use('http', ['client', 'server']);
api.use('tinytest');
api.use('test-helpers', ['client', 'server']);
api.addFiles('tests/test-responder.js', 'server');
api.addFiles('tests/http-tests.js', ['client', 'server']);
api.addAssets('tests/test-static.serveme', 'client');
});