-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.config.js
60 lines (59 loc) · 1.26 KB
/
project.config.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
const path = require('path');
const { default: create } = require('@riseup/library');
module.exports = create({
// Whether it is a monorepo child project
monorepo: false,
// Enables typescript and declaration files
typescript: true,
// Paths used on build
paths: {
root: __dirname,
docs: path.join(__dirname, 'docs'),
build: path.join(__dirname, 'pkg')
},
version: {
// Build project on version bump. Boolean.
build: true,
// Generate docs from TS on version bump. Boolean.
docs: false
},
assign: {
todo: ['xxx', 'fixme', 'todo', 'refactor'],
// Source code aliases
alias: {
'~': './src'
}
},
extend: {
babel: {
strategy: 'deep',
configure: {}
},
eslint: {
strategy: 'deep',
configure: {
overrides: [
{
files: ['*'],
rules: {
'@typescript-eslint/no-namespace': 0
}
}
]
}
},
jest: {
strategy: 'deep',
configure: {
modulePathIgnorePatterns: [],
transformIgnorePatterns: ['/node_modules/(?!(module-to-transpile)/)']
}
},
typedoc: {
strategy: 'deep',
configure: {
exclude: ['**/__mocks__/**/*']
}
}
}
});