提交 2fb22b6f 编写于 作者: chitanda's avatar chitanda

feat

上级 29866ad9
......@@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"dev": "tsc --watch",
"build": "node ./build.js"
"build": "tsc --build"
},
"author": "",
"license": "MIT",
......
......@@ -4,7 +4,7 @@ import fs from 'fs-extra';
import path from 'path';
// 当前所有的
const layoutViews = ['ViewLayoutModelRepositoryGridViewLayout'];
const layoutViews = ['ViewLayoutModelRepositoryDEGridViewLayout', 'AppIndexViewLayout'];
// 输出目录
const output = path.resolve(process.cwd(), 'layout-out');
......@@ -35,7 +35,7 @@ if (fs.existsSync(output) === false) {
// 输出 json 文件
function writeJsonFile(view: IAppView) {
fs.writeFileSync(path.resolve(output, `${view.codeName}.json`), JSON.stringify(view.viewLayoutPanel, null ,2));
fs.writeFileSync(path.resolve(output, `${view.codeName!.replace('ViewLayoutModelRepository', '')}.json`), JSON.stringify(view.viewLayoutPanel, null ,2));
}
async function main(): Promise<void> {
......@@ -53,4 +53,4 @@ async function main(): Promise<void> {
});
}
main();
\ No newline at end of file
main();
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册