新增vue前端模块代码生成模板
This commit is contained in:
@@ -33,7 +33,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
|
||||
/**
|
||||
* 模块管理Controller
|
||||
* @author ThinkGem
|
||||
|
||||
@@ -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>
|
||||
@@ -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><
|
||||
- 需求收集:<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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user