Features · Deployment · Getting started · Scripts overview · Contribution · Support
This is a simple starter template for Svelte 5. It includes a basic setup for a Svelte 5 project with a simple component and a simple store. The template alo features TailwindCSS for styling.
Easily deploy your Sveltekit app with Vercel by clicking the button below:
Using this repository as template
Using git clone
git clone https://github.com/timscodebase/Svelte-5-Starter.git my-project-name
pnpm install
Create .env
file and set env variables from .env.example
file.
It is required if you want husky to work
pnpm run prepare
You can start the server using this command:
pnpm run dev
The following scripts are available in the package.json
:
dev
: Run development serverbuild
: Build the appstart
: Run production serverpreview
: Run build
and start
commands togetherlint
: Lint the code using Eslintlint:fix
: Fix linting errorsformat:check
: Checks the code for proper formattingformat:write
: Fix formatting issuestypecheck
: Type-check TypeScript without emitting filestest
: Run unit teststest:watch
: Run unit tests in watch modee2e
: Run end-to-end testse2e:ui
: Run end-to-end tests with UIpostbuild
: Generate sitemapprepare
: Install Husky for managing Git hooksTo contribute, please follow these steps:
If you liked the project, I will appreciate if you leave a star. 🌟😊
Made by Tim Smith