@@ -24,9 +24,9 @@ const group = await clack.group(
24
24
clack . select ( {
25
25
message : 'Project type:' ,
26
26
options : [
27
- { value : 'server' , label : pc . magenta ( 'MCP Server' ) } ,
28
- // { value: 'client', label: pc.blue ('MCP Client') },
29
- // { value: 'host', label: pc.green ('MCP Host') },
27
+ { value : 'server' , label : pc . magentaBright ( 'MCP Server' ) } ,
28
+ { value : 'client' , label : pc . greenBright ( 'MCP Client' ) } ,
29
+ // { value: 'host', label: pc.yellowBright ('MCP Host') },
30
30
] ,
31
31
} ) ,
32
32
name : ( { results } ) =>
@@ -39,8 +39,8 @@ const group = await clack.group(
39
39
clack . select ( {
40
40
message : 'Project language:' ,
41
41
options : [
42
- { value : 'ts' , label : pc . magenta ( 'TypeScript' ) } ,
43
- { value : 'js' , label : pc . blue ( 'JavaScript' ) } ,
42
+ { value : 'ts' , label : pc . magentaBright ( 'TypeScript' ) } ,
43
+ { value : 'js' , label : pc . greenBright ( 'JavaScript' ) } ,
44
44
] ,
45
45
} ) ,
46
46
transports : ( ) => {
@@ -49,33 +49,40 @@ const group = await clack.group(
49
49
required : true ,
50
50
initialValues : [ 'stdio' ] ,
51
51
options : [
52
- { value : 'stdio' , label : pc . magenta ( 'STDIO' ) } ,
53
- { value : 'streamable' , label : pc . blue ( 'Streamable HTTP' ) } ,
54
- { value : 'sse' , label : pc . yellow ( 'SSE' ) } ,
52
+ { value : 'stdio' , label : pc . magentaBright ( 'STDIO' ) } ,
53
+ { value : 'streamable' , label : pc . greenBright ( 'Streamable HTTP' ) } ,
54
+ { value : 'sse' , label : pc . yellowBright ( 'SSE' ) } ,
55
55
] ,
56
56
} )
57
57
} ,
58
58
template : ( ) =>
59
59
clack . select ( {
60
60
message : 'Project template:' ,
61
61
options : [
62
- { value : 'standard' , label : pc . magenta ( 'Standard (recommended)' ) } ,
63
- { value : 'custom' , label : pc . blue ( 'Custom' ) } ,
62
+ { value : 'standard' , label : pc . magentaBright ( 'Standard (recommended)' ) } ,
63
+ { value : 'custom' , label : pc . greenBright ( 'Custom' ) } ,
64
64
] ,
65
65
} ) ,
66
66
plugins : ( { results } ) => {
67
67
if ( results . template !== 'custom' ) {
68
- return Promise . resolve ( [ 'github-action' , 'vitest' , 'inspector' , 'style' , 'commitlint' , 'changelog' ] )
68
+ return Promise . resolve ( [
69
+ 'github-action' ,
70
+ 'vitest' ,
71
+ ...( results . type === 'server' ? [ 'inspector' ] : [ ] ) ,
72
+ 'style' ,
73
+ 'commitlint' ,
74
+ 'changelog' ,
75
+ ] )
69
76
}
70
77
return clack . multiselect ( {
71
78
message : 'Project plugins:' ,
72
79
required : false ,
73
80
options : [
74
- { value : 'github-action' , label : pc . magenta ( 'GitHub Action' ) } ,
75
- { value : 'vitest' , label : pc . green ( 'Vitest' ) } ,
76
- { value : 'inspector' , label : pc . blue ( 'Inspector' ) } ,
77
- { value : 'style' , label : pc . white ( 'ESLint + Prettier + Lint-staged' ) } ,
78
- { value : 'commitlint' , label : pc . gray ( 'Commitlint' ) } ,
81
+ { value : 'github-action' , label : pc . magentaBright ( 'GitHub Action' ) } ,
82
+ { value : 'vitest' , label : pc . greenBright ( 'Vitest' ) } ,
83
+ ... ( results . type === 'server' ? [ { value : 'inspector' , label : pc . cyanBright ( 'Inspector' ) } ] : [ ] ) ,
84
+ { value : 'style' , label : pc . yellowBright ( 'ESLint + Prettier + Lint-staged' ) } ,
85
+ { value : 'commitlint' , label : pc . redBright ( 'Commitlint' ) } ,
79
86
{ value : 'changelog' , label : pc . blueBright ( 'Changelog' ) } ,
80
87
] ,
81
88
} )
0 commit comments