Svelte
Svelte
Svelte is a radical new approach to building user interfaces. While traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app.
Create Svelte App
Svelte
Create a new Svelte application
npm create svelte@latest my-app
Svelte Development Server
Svelte
Start the Svelte development server
npm run dev
Svelte Build
Svelte
Build the Svelte application for production
npm run build
Svelte Preview
Svelte
Preview the production build locally
npm run preview
Svelte Check
Svelte
Run type checking
npm run check
Svelte Test
Svelte
Run unit tests
npm run test
Svelte Add Package
Svelte
Add a new package to the project
npx svelte-add package-name
Svelte Add Component
Svelte
Add a new component to the project
npx svelte-add component-name