Skip to content

Commit 0a86262

Browse files
authored
feat(create-vite): add Vike (#21132)
1 parent 4f8171e commit 0a86262

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/create-vite/src/index.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ const FRAMEWORKS: Framework[] = [
118118
color: greenBright,
119119
customCommand: 'npm exec nuxi init TARGET_DIR',
120120
},
121+
{
122+
name: 'custom-vike-vue',
123+
display: 'Vike ↗',
124+
color: greenBright,
125+
customCommand: 'npm create -- vike@latest --vue TARGET_DIR',
126+
},
121127
],
122128
},
123129
{
@@ -181,6 +187,12 @@ const FRAMEWORKS: Framework[] = [
181187
customCommand:
182188
'npm exec degit vitejs/vite-plugin-react/packages/plugin-rsc/examples/starter TARGET_DIR',
183189
},
190+
{
191+
name: 'custom-vike-react',
192+
display: 'Vike ↗',
193+
color: cyan,
194+
customCommand: 'npm create -- vike@latest --react TARGET_DIR',
195+
},
184196
],
185197
},
186198
{
@@ -268,6 +280,12 @@ const FRAMEWORKS: Framework[] = [
268280
customCommand:
269281
'npm create -- tsrouter-app@latest TARGET_DIR --framework Solid --interactive',
270282
},
283+
{
284+
name: 'custom-vike-solid',
285+
display: 'Vike ↗',
286+
color: cyan,
287+
customCommand: 'npm create -- vike@latest --solid TARGET_DIR',
288+
},
271289
],
272290
},
273291
{

0 commit comments

Comments
 (0)