feat(cli): add ms microservice template support
1. 新增`ms`微服务模板,包含共享项目、微服务、网关、应用等完整架构 2. 为`hua new`命令添加`ms`模板选项并更新文档 3. 将模板文件嵌入CLI项目输出目录 4. 实现微服务模板的项目构建逻辑,自动安装并使用dotnet自定义模板创建项目
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"$schema": "http://json.schemastore.org/template",
|
||||
"author": "Hua",
|
||||
"classifications": ["Hua", "Microservice", "Web", "Solution"],
|
||||
"identity": "Hua.Microservice.Template",
|
||||
"name": "Hua Microservice Solution",
|
||||
"shortName": "hua-ms",
|
||||
"sourceName": "Company.Project",
|
||||
"preferNameDirectory": true,
|
||||
"tags": {
|
||||
"language": "C#",
|
||||
"type": "project"
|
||||
},
|
||||
"symbols": {
|
||||
"databaseProvider": {
|
||||
"type": "parameter",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{ "choice": "ef", "description": "Entity Framework Core" }
|
||||
],
|
||||
"defaultValue": "ef",
|
||||
"description": "Database provider"
|
||||
},
|
||||
"uiFramework": {
|
||||
"type": "parameter",
|
||||
"datatype": "choice",
|
||||
"choices": [
|
||||
{ "choice": "mvc", "description": "ASP.NET Core MVC" },
|
||||
{ "choice": "none", "description": "No UI" }
|
||||
],
|
||||
"defaultValue": "mvc",
|
||||
"description": "UI framework"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user