-
Notifications
You must be signed in to change notification settings - Fork 4
/
.aegir.js
54 lines (53 loc) · 1.21 KB
/
.aegir.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
/** @type {import('aegir').PartialOptions} */
export default {
typescript: true,
dependencyCheck: {
ignore: [
'@swc/cli',
'@swc/core',
'@swc/helpers',
'cors',
'dotenvrc',
'express',
'express-promise-router',
'mock-ipfs-pinning-service',
'portscanner',
'regenerator-runtime',
'winston',
]
},
docs: {
publish: true,
entryPoint: './'
},
build: {
types: true,
config: {
format: 'esm',
platform: 'node',
external: ['electron', '#ansi-styles', 'yargs/yargs', '#supports-color']
},
bundlesizeMax: '44KB'
},
test: {
build: false,
progress: true,
cov: false,
async before () {
const { MockServerController } = await import('./dist/test/MockServerController.js')
return {
env: {
MOCK_PINNING_SERVER_SECRET: 'ci',
},
controller: new MockServerController(),
}
},
/**
* @param {import('aegir').GlobalOptions & import('aegir').TestOptions} _
* @param { { controller: import('./test/MockServerController.js').MockServerController } } beforeResult
*/
async after (_, {controller}) {
await controller.shutdown()
}
}
}