-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.config.ts
64 lines (61 loc) · 1.65 KB
/
archive.config.ts
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
// document 配置
import { defineConfig } from './packages/index';
export default defineConfig({
router: '__document',
redirect: true,
useparam: true,
// 目前只支持相对的路径
components: [
{
dir: './src/components/',
comprops: '/common/props/',
alias: 'com',
// extensions: ['vue'],
// /**
// * 匹配文件名称和文件类型
// */
matchexts: ['/src/index.vue'],
components: import.meta.glob(
'./src/components/**/src/index.(js|vue)',
),
componentsRaw: import.meta.glob(
'./src/components/**/*.(js|vue)',
{
as: 'raw',
},
),
},
],
example: {
dir: './example/',
/**
* 0 : url 下面就是组件
* 1 : dir 名称开始
* 2 : 二级 aliass 目录
* 3 : dir 名称开始 加上二级 aliass 目录
*/
level: 1,
/**
* 0 : 不支持别名
* 1 : 只支持一级别名
* 2 : 只支持二级别名
* 3 : 只支持一级别名+二级别名
* 9 : 都支持
*/
aliaslevel: 0,
/**
* 不区分首字母大小写
* 0 : 只支持 el-input
* 1 : 只支持 elInput
* 2 : 都支持
*/
componentName: 0,
examples: import.meta.glob(
`./example/**/index.(js|vue)`,
),
examplesRaw: import.meta.glob('./example/**', {
as: 'raw',
}),
md: 'README',
},
});