This is a SvelteKit starter template for building web-apps that comes with:
dev
: Start development serverbuild
: Build the apppreview
: Preview the built appcheck
: Run svelte-check and TypeScript compilercheck:watch
: Run check script in watch modetest:e2e
: Run Playwright teststest:unit
: Run vitest unit teststest:unit:once
: Run test:unit oncetest:unit:ui
: Run test:unit in UI modeformat
: Run Prettierlint
: Run ESLint on .ts and .tsx fileslint:styles
: Run Stylelint on .svelte and .scss fileslint:fix
: Run Prettier, ESLint and Stylelint in fix modelint-staged
: Run lint-staged on staged fileTo get started, clone this repository and install the dependencies:
git clone https://github.com/your-username/sveltekit-starter-template.git
cd sveltekit-starter-template
pnpm install
Once you've created a project and installed dependencies with pnpm install
(or npm install
or yarn
), start a development server:
pnpm run dev
# or start the server and open the app in a new browser tab
pnpm run dev -- --open
To create a production version of your app:
pnpm run build
You can preview the production build with pnpm run preview
.
To deploy your app, you may need to install an adapter for your target environment.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Of course, feel free to modify and expand upon this README.md as needed for your specific p
Everything you need to build a Svelte project.