Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// 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
});