新增vue前端模块代码生成模板

This commit is contained in:
thinkgem
2025-06-18 11:03:01 +08:00
parent 5fc096ab0a
commit f1281b73cc
8 changed files with 153 additions and 1 deletions

View File

@@ -33,7 +33,6 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
/**
* 模块管理Controller
* @author ThinkGem

View File

@@ -293,5 +293,13 @@
<template>module_cloud/web/pom.xml</template>
<template>module_cloud/pom.xml</template>
</category>
<category value="module_vue" label="生成前端模块代码Vue">
<template>module_vue/api/api.xml</template>
<template>module_vue/views/views.xml</template>
<template>module_vue/index.ts.xml</template>
<template>module_vue/package.json.xml</template>
<template>module_vue/README.md.xml</template>
<template>module_vue/tsconfig.json.xml</template>
</category>
</moduleTplCategory>
</config>

View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
No deletion without permission, or be held responsible to law. -->
<template>
<name>README</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<fileName>README.md</fileName>
<content><![CDATA[
- 官方网站:<https://jeesite.com>
- 使用文档:<https://jeesite.com/docs>
- 后端代码:<https://gitee.com/thinkgem/jeesite5>
- 前端代码:<https://gitee.com/thinkgem/jeesite-vue>
------
<div align="center">
如果你喜欢 JeeSite请给她一个 ⭐️ Star您的支持将是我们前行的动力。
</div>
------
- 问题反馈:<https://gitee.com/thinkgem/jeesite-vue/issues> [【新手必读】](https://gitee.com/thinkgem/jeesite5/issues/I18ARR)
- 需求收集:<https://gitee.com/thinkgem/jeesite-vue/issues/new>
- QQ 群:`127515876`、`209330483`、`223507718`、`709534275`、`730390092`、`1373527`、`183903863(外包)`
- 微信群:添加客服微信 <http://s.jeesite.com> 邀请您进群
- 关注微信公众号,了解最新动态:
<p style="padding-left:40px">
<img alt="JeeSite微信公众号" src="https://jeesite.com/assets/images/mp.png" width="220" height="220">
</p>
]]>
</content>
</template>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
No deletion without permission, or be held responsible to law. -->
<template>
<name>api</name>
<filePath>${baseDir}/packages/${moduleCode}/api</filePath>
<fileName></fileName>
<content><![CDATA[
]]>
</content>
</template>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
No deletion without permission, or be held responsible to law. -->
<template>
<name>index</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<fileName>index.ts</fileName>
<content><![CDATA[
]]>
</content>
</template>

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
No deletion without permission, or be held responsible to law. -->
<template>
<name>package</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<fileName>package.json</fileName>
<content><![CDATA[
{
"name": "@jeesite/${moduleCode}",
"version": "${module.currentVersion}",
"private": true,
"type": "module",
"scripts": {
"type:check": "vue-tsc --noEmit --skipLibCheck",
"uninstall": "rimraf node_modules",
"update": "ncu -u"
},
"dependencies": {
"qs": "6.14.0"
},
"devDependencies": {
"@types/qs": "6.9.18"
},
"homepage": "https://jeesite.com",
"repository": {
"type": "git",
"url": "https://gitee.com/thinkgem/jeesite-vue.git"
},
"bugs": {
"url": "https://gitee.com/thinkgem/jeesite-vue/issues"
},
"author": {
"name": "ThinkGem",
"email": "thinkgem@163.com",
"url": "https://gitee.com/thinkgem"
}
}
]]>
</content>
</template>

View File

@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
No deletion without permission, or be held responsible to law. -->
<template>
<name>tsconfig</name>
<filePath>${baseDir}/packages/${moduleCode}</filePath>
<fileName>tsconfig.json</fileName>
<content><![CDATA[
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@jeesite/${moduleCode}/*": ["./*"]
}
},
"include": [
"./**/*.ts",
"./**/*.tsx",
"./**/*.vue"
],
"exclude": [
"node_modules",
"vite.config.ts",
"_lib",
"dist"
]
}
]]>
</content>
</template>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2013-Now http://jeesite.com All rights reserved.
No deletion without permission, or be held responsible to law. -->
<template>
<name>views</name>
<filePath>${baseDir}/packages/${moduleCode}/views</filePath>
<fileName></fileName>
<content><![CDATA[
]]>
</content>
</template>