How to use @vant/markdown-vetur - 1 common examples

To help you get started, we’ve selected a few @vant/markdown-vetur examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github youzan / vant / build / build-components.js View on Github external
// clear dir
fs.emptyDirSync(esDir);
fs.emptyDirSync(libDir);

// compile es dir
fs.copySync(srcDir, esDir);
compile(esDir);

// compile lib dir
process.env.BABEL_MODULE = 'commonjs';
fs.copySync(srcDir, libDir);
compile(libDir);

// generate vetur tags & attributes
markdownVetur.parseAndWrite({
  path: srcDir,
  test: /zh-CN\.md/,
  tagPrefix: 'van-',
  outputDir: veturDir
});

@vant/markdown-vetur

simple parse markdown to vue component description for vetur auto-completion

MIT
Latest version published 3 years ago

Package Health Score

70 / 100
Full package analysis

Popular @vant/markdown-vetur functions

Similar packages