mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
@@ -1,15 +1,23 @@
|
||||
import markdownVetur from '@vant/markdown-vetur';
|
||||
import { join } from 'path';
|
||||
import { get } from 'lodash';
|
||||
import { SRC_DIR, getVantConfig, ROOT } from '../common/constant';
|
||||
import {
|
||||
ROOT,
|
||||
SRC_DIR,
|
||||
getVantConfig,
|
||||
getPackageJson,
|
||||
} from '../common/constant';
|
||||
|
||||
// generate vetur tags & attributes
|
||||
export function genVeturConfig() {
|
||||
const vantConfig = getVantConfig();
|
||||
const pkgJson = getPackageJson();
|
||||
const options = get(vantConfig, 'build.vetur');
|
||||
|
||||
if (options) {
|
||||
markdownVetur.parseAndWrite({
|
||||
name: vantConfig.name,
|
||||
version: pkgJson.version,
|
||||
path: SRC_DIR,
|
||||
test: /zh-CN\.md/,
|
||||
outputDir: join(ROOT, 'vetur'),
|
||||
|
Reference in New Issue
Block a user