Scaffolding Your First Vite Project With Svelte
First you need to create vite project there is three way you can create vite project. you can see below.
npm create vite@latest
yarn create vite
pnpm create vite
Now you need to select svelte framework
✔ Project name: … svelte-ts ? Select a framework: › - Use arrow-keys. Return to submit. vanilla vue react preact lit ❯ svelte
Next, Select Typescript with Svelte
✔ Project name: … svelte-ts ✔ Select a framework: › svelte ? Select a variant: › - Use arrow-keys. Return to submit. svelte ❯ svelte-ts
Move to project directory and install node dependencies.
cd svelte-ts npm install npm run dev
run the server
npm run dev