-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfig.ts
29 lines (28 loc) · 806 Bytes
/
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
import type { Config } from './type'
export const config: Config = {
tags: 'tags.json',
attributes: 'attributes.json',
webTypes: 'web-types.json',
titleRegExp: /#+\s+(.*)\n+([^(#|\n)]*)/g,
tableRegExp: /#+\s+(.*)\n+(\|?.+\|.+)\n\|?\s*:?-+:?\s*\|.+((\n\|?.+\|.+)+)/g,
fileNameRegExp: /\/((\w|-)+)\.\w+$/,
separator: '/',
props: 'props',
propsName: 'Name',
propsType: 'Type',
propsDescription: 'Description',
propsOptions: 'Options',
propsDefault: 'Default',
events: 'events',
eventsName: 'Name',
eventsDescription: 'Description',
slots: 'slots',
slotsName: 'Name',
slotsDescription: 'Description',
slotsType: 'Type',
slotsSubtags: 'Subtags',
directives: 'directives',
directivesName: 'Name',
directivesType: 'Type',
directivesDescription: 'Description',
}