Skip to content

Commit 505c0fe

Browse files
committed
🎉 feat(app): 更新
1 parent 03034de commit 505c0fe

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

src/common.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
export const projectSources: Array<ProjectSource> = [
2+
{
3+
name: "npm create vite@latest",
4+
display: "vite@latest",
5+
description: "创建由 Vite 驱动的新的项目",
6+
},
7+
{
8+
name: "npm create vue@latest",
9+
display: "vue@latest",
10+
description: "创建由 Vite 驱动的 Vue3 项目",
11+
},
12+
{
13+
name: "npm create vue@legacy",
14+
display: "vue@legacy",
15+
description: "创建由 Vite 驱动的 Vue2 项目(支持 IE11)",
16+
},
17+
];
18+
19+
export interface ProjectSource {
20+
name: string;
21+
display: string;
22+
description: string;
23+
}

src/index.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
import type { CAC } from "cac";
2-
import {
3-
ACTIVATION,
4-
execCommand,
5-
loggerInfo,
6-
ProjectSource,
7-
projectSources,
8-
} from "code-genius";
2+
import { ACTIVATION, execCommand, loggerInfo } from "code-genius";
93
import enquirer from "enquirer";
104

5+
import { ProjectSource, projectSources } from "./common";
6+
117
interface PromptResult {
128
command: string;
139
}

0 commit comments

Comments
 (0)