mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
feat(cli): set title by lang
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import glob from 'fast-glob';
|
||||
import { join, parse } from 'path';
|
||||
import { existsSync } from 'fs-extra';
|
||||
import { existsSync, readdirSync } from 'fs-extra';
|
||||
import {
|
||||
pascalize,
|
||||
removeExt,
|
||||
getVantConfig,
|
||||
getComponents,
|
||||
smartOutputFile
|
||||
} from '../common';
|
||||
import {
|
||||
@@ -96,8 +95,8 @@ function genExportConfig() {
|
||||
}
|
||||
|
||||
export function genSiteDesktopShared() {
|
||||
const components = getComponents();
|
||||
const documents = resolveDocuments(components);
|
||||
const dirs = readdirSync(SRC_DIR);
|
||||
const documents = resolveDocuments(dirs);
|
||||
|
||||
const code = `${genImportConfig()}
|
||||
${genImportDocuments(documents)}
|
||||
|
Reference in New Issue
Block a user