@@ -6,7 +6,6 @@ import { genWebTypes } from './web-types';
6
6
import { outputFileSync , readFileSync } from 'fs-extra' ;
7
7
import type { Options , VueTag } from './type' ;
8
8
import { getComponentName , normalizePath , toKebabCase } from './utils' ;
9
- import { genVeturAttributes , genVeturTags } from './vetur' ;
10
9
import { flatMap } from 'lodash' ;
11
10
12
11
async function readMarkdown ( options : Options ) : Promise < Map < String , VueTag > > {
@@ -78,13 +77,6 @@ export async function parseAndWrite(options: Options): Promise<Number> {
78
77
const tagsFromTypings = await readTypings ( options ) ;
79
78
const tags = mergeTags ( [ tagsFromMarkdown , tagsFromTypings ] ) ;
80
79
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
- ) ;
88
80
outputFileSync ( join ( options . outputDir , 'web-types.json' ) , JSON . stringify ( webTypes , null , 2 ) ) ;
89
81
return tags . length ;
90
82
}
0 commit comments