[new feature] Vue template language auto compeletion on vscode (#2195)

This commit is contained in:
张帅
2018-11-30 23:34:56 +08:00
committed by neverland
parent 89ff50944c
commit 66c940d672
4 changed files with 20 additions and 0 deletions
+10
View File
@@ -5,10 +5,12 @@ const fs = require('fs-extra');
const path = require('path');
const babel = require('@babel/core');
const compiler = require('vue-sfc-compiler');
const markdownVetur = require('markdown-vetur');
const esDir = path.join(__dirname, '../es');
const libDir = path.join(__dirname, '../lib');
const srcDir = path.join(__dirname, '../packages');
const distDir = path.join(__dirname, '../dist');
const compilerOption = {
babel: {
configFile: path.join(__dirname, '../babel.config.js')
@@ -68,3 +70,11 @@ compile(esDir);
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: distDir
});