page: 新增页面: 📄 cSharp开发模板
This commit is contained in:
parent
9bbaef0120
commit
9b06f0a26d
|
@ -9,6 +9,7 @@ const frame = [
|
|||
{ name: '创建大屏项目', value: 'large' },
|
||||
{ name: '创建管理后台', value: 'admin' },
|
||||
{ name: '创建Java项目', value: 'java' },
|
||||
{ name: '创建CSharp项目', value: 'cSharp' },
|
||||
{ name: '创建MD文档项目', value: 'docs' },
|
||||
],
|
||||
},
|
||||
|
@ -66,15 +67,23 @@ const java = [
|
|||
},
|
||||
];
|
||||
|
||||
// cSharp
|
||||
const cSharp = [
|
||||
{
|
||||
type: 'list',
|
||||
message: 'C#️ 选择Java模板',
|
||||
name: 'cSharp',
|
||||
choices: [{ name: 'C# 单体开发模板', value: 'Csharp_single' }],
|
||||
},
|
||||
];
|
||||
|
||||
// docs
|
||||
const docs = [
|
||||
{
|
||||
type: 'list',
|
||||
message: '📑选择文档模板',
|
||||
name: 'docs',
|
||||
choices: [
|
||||
{ name: '基于Hope文档', value: 'bunny_docs' },
|
||||
],
|
||||
choices: [{ name: '基于Hope文档', value: 'bunny_docs' }],
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -96,9 +105,11 @@ module.exports = {
|
|||
// ? Java模版
|
||||
'java&java_single': 'https://gitee.com/BunnyBoss/java_single.git',
|
||||
'java&java_mirror_server': 'https://gitee.com/BunnyBoss/java-mirror-server.git',
|
||||
// ? cSharp模版
|
||||
'cSharp&Csharp_single': 'https://gitee.com/BunnyBoss/bunny-template.git',
|
||||
// ? docs模板
|
||||
"docs&bunny_docs": 'https://gitee.com/BunnyBoss/bunny_docs.git'
|
||||
'docs&bunny_docs': 'https://gitee.com/BunnyBoss/bunny_docs.git',
|
||||
},
|
||||
// 问题
|
||||
question: { frame, vue, large, admin, java,docs },
|
||||
question: { frame, vue, large, admin, java, cSharp, docs },
|
||||
};
|
||||
|
|
|
@ -70,6 +70,13 @@ module.exports = {
|
|||
|
||||
return projectList[key]; // 匹配选择内容
|
||||
}
|
||||
// cSharp模板
|
||||
else if (frame.type === 'cSharp') {
|
||||
const awsaner = await inquirer.prompt(question.cSharp);
|
||||
const key = `${frameType}&${awsaner.cSharp}`;
|
||||
|
||||
return projectList[key]; // 匹配选择内容
|
||||
}
|
||||
// docs模板
|
||||
else if (frame.type === 'docs') {
|
||||
const awsaner = await inquirer.prompt(question.docs);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "bunny-cli",
|
||||
"version": "1.2.0",
|
||||
"version": "1.2.1",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"keywords": [
|
||||
|
|
Loading…
Reference in New Issue