1
0
mirror of https://github.com/sahadev/vue-component-creater-ui.git synced 2025-12-15 23:14:18 +08:00

feat: 支持单文件二次编辑

This commit is contained in:
shangbin
2021-11-16 19:58:28 +08:00
parent 4cde9098bc
commit 2f4b143550
8 changed files with 139 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
const compiler = require("./compileComponent.js");
const { compiler } = require("./compileComponent.js");
const glob = require("glob");
const path = require("path");
@@ -14,13 +14,13 @@ glob(
{
cwd: componentsPath,
absolute: true,
ignore: ['**/element/index.vue', '**/vant/index.vue', '**/iview/index.vue']
ignore: ["**/element/index.vue", "**/vant/index.vue", "**/iview/index.vue"],
},
function (er, files) {
console.info(`正在对${files.length}个文件进行编译...`);
files.forEach((filePath) => {
console.info(`正在编译${filePath}`);
compiler(filePath);
});
}
);
);