@@ -6,7 +6,6 @@ import { genWebTypes } from './web-types';
66import { outputFileSync , readFileSync } from 'fs-extra' ;
77import type { Options , VueTag } from './type' ;
88import { getComponentName , normalizePath , toKebabCase } from './utils' ;
9- import { genVeturAttributes , genVeturTags } from './vetur' ;
109import { flatMap } from 'lodash' ;
1110
1211async 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}
0 commit comments