Skip to content

Commit 48a3ceb

Browse files
authored
chore: remove vetur type generator (#7517)
1 parent 23c620e commit 48a3ceb

File tree

3 files changed

+0
-57
lines changed

3 files changed

+0
-57
lines changed

antd-tools/generator-types/src/index.ts

-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { genWebTypes } from './web-types';
66
import { outputFileSync, readFileSync } from 'fs-extra';
77
import type { Options, VueTag } from './type';
88
import { getComponentName, normalizePath, toKebabCase } from './utils';
9-
import { genVeturAttributes, genVeturTags } from './vetur';
109
import { flatMap } from 'lodash';
1110

1211
async function readMarkdown(options: Options): Promise<Map<String, VueTag>> {
@@ -78,13 +77,6 @@ export async function parseAndWrite(options: Options): Promise<Number> {
7877
const tagsFromTypings = await readTypings(options);
7978
const tags = mergeTags([tagsFromMarkdown, tagsFromTypings]);
8079
const webTypes = genWebTypes(tags, options);
81-
const veturTags = genVeturTags(tags);
82-
const veturAttributes = genVeturAttributes(tags);
83-
outputFileSync(join(options.outputDir, 'tags.json'), JSON.stringify(veturTags, null, 2));
84-
outputFileSync(
85-
join(options.outputDir, 'attributes.json'),
86-
JSON.stringify(veturAttributes, null, 2),
87-
);
8880
outputFileSync(join(options.outputDir, 'web-types.json'), JSON.stringify(webTypes, null, 2));
8981
return tags.length;
9082
}

antd-tools/generator-types/src/type.ts

-19
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,6 @@ export type VueTag = {
3434
description?: string;
3535
};
3636

37-
export type VeturTag = {
38-
description?: string;
39-
attributes: string[];
40-
};
41-
42-
export type VeturTags = Record<string, VeturTag>;
43-
44-
export type VeturAttribute = {
45-
type: string;
46-
description: string;
47-
};
48-
49-
export type VeturAttributes = Record<string, VeturAttribute>;
50-
51-
export type VeturResult = {
52-
tags: VeturTags;
53-
attributes: VeturAttributes;
54-
};
55-
5637
export type Options = {
5738
name: string;
5839
path: PathLike;

antd-tools/generator-types/src/vetur.ts

-30
This file was deleted.

0 commit comments

Comments
 (0)