Dev
Web
Svelte
Getting Started

Svelte - Getting Started

npx degit sveltejs/template <project_name>
cd <project_name>
 
npm i
npm run dev

reference: svelte.dev (opens in a new tab)

sveltekit (beta)

mkdir <app_name>
cd <app_name>
npm init svelte@next
 
# install dependencies
npm install
 
# start dev server and open a browser tab
npm run dev -- --open

reference: https://kit.svelte.dev/ (opens in a new tab)

@vitejs/app

bash npm init @vitejs/app [app_name] --template svelte

TypeScript

bash npm init @vitejs/app [app_name] --template svelte-ts

references:

create-snowpack-app

npx create-snowpack-app <app_name> --template @snowpack/app-template-svelte-typescript [--use-yarn | --use-pnpm | --no-install]
npx create-snowpack-app <app_name> --template @snowpack/app-template-svelte

references:

Last updated on January 11, 2023