This is a prototype of a Svelte app that I'm building to learn Svelte and TypeScript.
- Svelte 4
- Vite 5
- TypeScript
- Tailwind CSS
- Lucide Icons
- svelte-spa-router
- pnpm
pnpm installpnpm devLocal 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 componentpnpm buildThe 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.