1. markdown-vetur
simple parse markdown to vue component description for vetur auto-completion
markdown-vetur
Package: markdown-vetur
Last modified: Sun, 08 May 2022 20:37:09 GMT
Version: 0.0.5
License: MIT
Downloads: 15

Install

npm install markdown-vetur
yarn add markdown-vetur

markdown-vetur 是什么

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

API

parseAndWrite

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

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

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin