watch-code-generator
v1.0.9
Published
一个灵活的代码生成器,支持自定义模板和交互式界面
Downloads
30
Maintainers
Readme
watch-code-generator
一个基于 OpenAPI 的 Vue 组件代码生成器。
安装
npm install -g watch-code-generator创建 codegen.config.js 文件
module.exports = {
openapiUrl: 'https://api.apifox.com/v3/projects/xxx/openapi.json',
templates: {
list: './templates/list.art',
form: './templates/form.art',
filter: './templates/filter.art',
modal: './templates/modal.art'
},
outputDir: '/view'
};