@vant/markdown-vetur
simple parse markdown to vue component description for vetur auto-completion
Last updated 2 months ago by chenjiahan .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @vant/markdown-vetur 
SYNC missed versions from official npm registry.

Vant Markdown Vetur

将 .md 文件转换成能描述 vue 组件的 .json 文件,供 WebStorm 和 vscode 的 vetur 插件读取,从而可以在 vue 模版语法中拥有自动补全的功能。

Install

NPM

npm i @vant/markdown-vetur -D

YARN

yarn add @vant/markdown-vetur --dev

API

parseAndWrite

解析目录下所有匹配的文件,并输出为 tags.json 和 attributes.json

interface Options {
  // 需要解析的文件夹路径
  path: PathLike;
  // 文件匹配正则
  test: RegExp;
  // 输出目录
  outputDir: string;
  // 递归的目录最大深度
  maxDeep?: number;
  // 解析出来的组件名前缀
  tagPrefix?: string;
}

Current Tags

  • 2.0.1                                ...           latest (2 months ago)

5 Versions

  • 2.0.1                                ...           2 months ago
  • 2.0.0                                ...           2 months ago
  • 2.0.0-beta.0                                ...           2 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.0                                ...           a year ago
Downloads
Today 0
This Week 70
This Month 70
Last Day 16
Last Week 124
Last Month 478
Dependencies (2)
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |