mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-10 10:58:11 +00:00
Update cheatsheets
This commit is contained in:
27
vite
Normal file
27
vite
Normal file
@@ -0,0 +1,27 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# Vite
|
||||
|
||||
> Create a Vite project.
|
||||
> Used to build JavaScript projects.
|
||||
> Available templates: vanilla, vanilla-ts, vue, vue-ts, react, react-ts, react-swc, react-swc-ts, preact, preact-ts, lit, lit-ts, svelte, svelte-ts.
|
||||
> More information: <https://vitejs.dev/guide>.
|
||||
|
||||
- Setup using `npm` 6.x:
|
||||
|
||||
`npm create vite@latest my-react-app --template react-ts`
|
||||
|
||||
- Setup using `npm` 7+, extra double-dash is needed:
|
||||
|
||||
`npm create vite@latest my-react-app -- --template react-ts`
|
||||
|
||||
- Setup using `yarn`:
|
||||
|
||||
`yarn create vite my-react-app --template react-ts`
|
||||
|
||||
- Setup using `pnpm`:
|
||||
|
||||
`pnpm create vite my-react-app --template react-ts`
|
||||
Reference in New Issue
Block a user