-
Notifications
You must be signed in to change notification settings - Fork 30
/
.aegir.js
79 lines (77 loc) · 1.59 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/** @type {import('aegir').PartialOptions} */
const options = {
lint: {
files: [
'src/**/*.ts',
'src/**/*.tsx',
'test/**/*.ts',
'test/**/*.tsx',
]
},
build: {
bundle: false,
/**
* esbuild options:
*/
config: {
loader: {
'.js': 'jsx',
'.ts': 'ts',
'.tsx': 'tsx'
}
}
},
test: {
build: false, // we trigger aegir build in package.json
files: [
'aegir-build/test/**/*.spec.js'
],
before: ({runner}) => {
// if (runner === 'node') {
// process.exit(0)
// }
// // skip tests
}
},
dependencyCheck: {
ignore: [
'tachyons', // we import tachyons in App.css
// aegir dep-check doesn't check tsx files properly:
'@helia/mfs',
'@libp2p/devtools-metrics',
'classnames',
'helia',
'ipfs-css',
'qrcode.react',
'react-circular-progressbar',
'react-copy-to-clipboard',
'react-dnd',
'react-dnd-html5-backend',
'react-dom',
'react-helmet',
'react-i18next',
'react-loader-spinner',
'react-modal',
'@multiformats/multiaddr-matcher',
'blockstore-idb',
'datastore-idb',
'interface-blockstore',
'interface-datastore',
// error when testing without this dep
'node-datachannel'
],
productionIgnorePatterns: [
'.storybook',
'vite.config.ts',
'test',
'**/*.stories.*',
'dist',
'aegir-build'
],
developmentIgnorePatterns: [
'dist',
'aegir-build'
]
}
}
export default options