Skip to content
Prev Previous commit
Next Next commit
remove eslint
  • Loading branch information
leifermendez committed Jul 5, 2023
commit 4aaab83e9a72772f69877647c79ca92fd0c3b16e
23 changes: 20 additions & 3 deletions packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import {
blue,
cyan,
green,
lightBlue,
lightGreen,
lightRed,
magenta,
red,
reset,
yellow,
lightBlue
} from 'kolorist'

// Avoids autoconversion to number of the project name by defining that the args
Expand Down Expand Up @@ -170,6 +170,23 @@ const FRAMEWORKS: Framework[] = [
},
],
},
{
name: 'solid',
display: 'Solid',
color: blue,
variants: [
{
name: 'solid-ts',
display: 'TypeScript',
color: blue,
},
{
name: 'solid',
display: 'JavaScript',
color: yellow,
},
],
},
{
name: 'qwik',
display: 'Qwik',
Expand Down Expand Up @@ -502,7 +519,7 @@ function setupReactSwc(root: string, isTs: boolean) {
editFile(path.resolve(root, 'package.json'), (content) => {
return content.replace(
/"@vitejs\/plugin-react": ".+?"/,
`"@vitejs/plugin-react-swc": "^3.0.0"`,
`"@vitejs/plugin-react-swc": "^3.3.2"`,
)
})
editFile(
Expand All @@ -520,4 +537,4 @@ function editFile(file: string, callback: (content: string) => string) {

init().catch((e) => {
console.error(e)
})
})