svelte create project code example
Example 1: svelte new project
npx degit sveltejs/template my-svelte-project
# or download and extract this .zip file
cd my-svelte-project
# to use TypeScript run:
# node scripts/setupTypeScript.js
npm install
npm run dev
Example 2: install svelte
npx degit sveltejs/template my-svelte-project
cd my-svelte-project
npm install
npm run dev