@vant/cli
Version:
Vant CLI is a tool for building vue component library. You can quickly build a full-featured Vue component library with vant-cli.
17 lines (16 loc) • 491 B
JavaScript
// create web-types.json to provide autocomplete in JetBrains IDEs
export function genWebTypes(tags, options) {
return {
$schema: 'https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json',
framework: 'vue',
name: options.name,
version: options.version,
contributions: {
html: {
tags,
attributes: [],
},
},
'js-types-syntax': 'typescript',
};
}