Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(create-vite): default to metaframeworks #19280

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 34 additions & 34 deletions packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,6 @@ const FRAMEWORKS: Framework[] = [
display: 'Vue',
color: green,
variants: [
{
name: 'vue-ts',
display: 'TypeScript',
color: blue,
},
{
name: 'vue',
display: 'JavaScript',
color: yellow,
},
{
name: 'custom-create-vue',
display: 'Customize with create-vue ↗',
Expand All @@ -112,13 +102,29 @@ const FRAMEWORKS: Framework[] = [
color: greenBright,
customCommand: 'npm exec nuxi init TARGET_DIR',
},
{
name: 'vue-ts',
display: 'TypeScript',
color: blue,
},
{
name: 'vue',
display: 'JavaScript',
color: yellow,
},
],
},
{
name: 'react',
display: 'React',
color: cyan,
variants: [
{
name: 'custom-react-router',
display: 'React Router v7 ↗',
color: cyan,
customCommand: 'npm create react-router@latest TARGET_DIR',
},
{
name: 'react-ts',
display: 'TypeScript',
Expand All @@ -139,19 +145,19 @@ const FRAMEWORKS: Framework[] = [
display: 'JavaScript + SWC',
color: yellow,
},
{
name: 'custom-react-router',
display: 'React Router v7 ↗',
color: cyan,
customCommand: 'npm create react-router@latest TARGET_DIR',
},
],
},
{
name: 'preact',
display: 'Preact',
color: magenta,
variants: [
{
name: 'custom-create-preact',
display: 'Customize with create-preact ↗',
color: magenta,
customCommand: 'npm create preact@latest TARGET_DIR',
},
{
name: 'preact-ts',
display: 'TypeScript',
Expand All @@ -162,12 +168,6 @@ const FRAMEWORKS: Framework[] = [
display: 'JavaScript',
color: yellow,
},
{
name: 'custom-create-preact',
display: 'Customize with create-preact ↗',
color: magenta,
customCommand: 'npm create preact@latest TARGET_DIR',
},
],
},
{
Expand All @@ -192,6 +192,12 @@ const FRAMEWORKS: Framework[] = [
display: 'Svelte',
color: red,
variants: [
{
name: 'custom-svelte-kit',
display: 'SvelteKit ↗',
color: red,
customCommand: 'npm exec sv create TARGET_DIR',
},
{
name: 'svelte-ts',
display: 'TypeScript',
Expand All @@ -202,12 +208,6 @@ const FRAMEWORKS: Framework[] = [
display: 'JavaScript',
color: yellow,
},
{
name: 'custom-svelte-kit',
display: 'SvelteKit ↗',
color: red,
customCommand: 'npm exec sv create TARGET_DIR',
},
],
},
{
Expand All @@ -232,6 +232,12 @@ const FRAMEWORKS: Framework[] = [
display: 'Qwik',
color: blueBright,
variants: [
{
name: 'custom-qwik-city',
display: 'QwikCity ↗',
color: blueBright,
customCommand: 'npm create qwik@latest basic TARGET_DIR',
},
{
name: 'qwik-ts',
display: 'TypeScript',
Expand All @@ -242,12 +248,6 @@ const FRAMEWORKS: Framework[] = [
display: 'JavaScript',
color: yellow,
},
{
name: 'custom-qwik-city',
display: 'QwikCity ↗',
color: blueBright,
customCommand: 'npm create qwik@latest basic TARGET_DIR',
},
],
},
{
Expand Down
Loading