-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjanghood.config.ts
More file actions
45 lines (41 loc) · 975 Bytes
/
janghood.config.ts
File metadata and controls
45 lines (41 loc) · 975 Bytes
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
/**
* @description 极客江湖配置文件
* @author 阿怪
* @date 2022/4/6 3:37 PM
* @version v1.0.0
*
* 江湖的业务千篇一律,复杂的代码好几百行。
*/
import { defineJhConfig } from '@janghood/config';
const firstUpperCase = (str: string) => `${str[0].toUpperCase()}${str.slice(1, str.length)}`;
const sourceSymbolTranslator = (dirList: string[]) => {
let lastDir = firstUpperCase(dirList[dirList.length - 1]);
return `M${lastDir}`;
};
export default defineJhConfig({
apiExtractor: {
// include: ['example/**/*.d.ts'],
include: ['example/base/message/message.d.ts'],
document: {
webTypes: {
active: true,
webTypesInfo: {
'framework': 'vue'
},
sourceSymbolTranslator
},
vscode: {
active: true
},
markdown: {
output: 'doc',
active: true
}
},
annotate: {
component: {
type: 'block'
}
}
}
});