This is a prototype of a Svelte app that I'm building to learn Svelte and TypeScript.
pnpm install
pnpm dev
Local development server runs by default at http://localhost:5173
.
Command | Description |
---|---|
pnpm dev |
Start development server |
pnpm build |
Build the project for production |
pnpm preview |
Preview the production build |
pnpm check |
Type and diagnostics validation |
src/
โโโ components/ # Reusable UI components
โโโ views/ # Views mapped by the router
โโโ stores/ # Global state using Svelte stores
โโโ utils/ # Utility/helper functions
โโโ App.svelte # Root component
pnpm build
The production build is output to the dist/
directory. You can deploy this folder to any static hosting provider (Netlify, Vercel, GitHub Pages, etc).
Make sure to enable fallback routing to index.html
if you're using SPA navigation.