File tree Expand file tree Collapse file tree 2 files changed +26
-7
lines changed
Expand file tree Collapse file tree 2 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 11import 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" ;
93import enquirer from "enquirer" ;
104
5+ import { ProjectSource , projectSources } from "./common" ;
6+
117interface PromptResult {
128 command : string ;
139}
You can’t perform that action at this time.
0 commit comments