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
npm init @vitejs/app [app_name] --template svelte
TypeScript
npm init @vitejs/app [app_name] --template svelte-ts
references:
- vitejs.dev (opens in a new tab)
- https://github.com/vitejs/vite/tree/main/packages/create-app (opens in a new tab)
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: