From 1a541e65c96e176fa9732be0b97dcec6e4b15117 Mon Sep 17 00:00:00 2001 From: Andrew Smith <62953977+AndrewSmithDev@users.noreply.github.com> Date: Mon, 2 Jan 2023 05:21:30 -0500 Subject: [PATCH] vite: add page (#9701) * vite: add file * vite: fix typo remove extra space * vite: add quotes to names --- pages/common/vite.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 pages/common/vite.md diff --git a/pages/common/vite.md b/pages/common/vite.md new file mode 100644 index 0000000000..d8ff77b500 --- /dev/null +++ b/pages/common/vite.md @@ -0,0 +1,22 @@ +# 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: . + +- 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`