Skip to content

This is a lightweight and customizable template for starting a new Svelte project. It includes a minimal setup with essential tools like Vite, ESLint, Prettier, and Husky pre-configured to help you write clean and consistent code.

License

Notifications You must be signed in to change notification settings

rlabs-digital/sveltekit-starter-base-template

Repository files navigation

SvelteKit Starter Template

Svelte TypeScript SCSS Playwright Vite vitest Husky ESLint Stylelint Prettier

This is a SvelteKit starter template for building web-apps that comes with:

  • TypeScript and SCSS support
  • Vite
  • Vitest and Vitest UI
  • Playwright for E2E testing
  • Husky for Git hooks
  • Stylelint and ESLint for linting

Available Scripts

  • dev: Start development server
  • build: Build the app
  • preview: Preview the built app
  • check: Run svelte-check and TypeScript compiler
  • check:watch: Run check script in watch mode
  • test:e2e: Run Playwright tests
  • test:unit: Run vitest unit tests
  • test:unit:once: Run test:unit once
  • test:unit:ui: Run test:unit in UI mode
  • format: Run Prettier
  • lint: Run ESLint on .ts and .tsx files
  • lint:styles: Run Stylelint on .svelte and .scss files
  • lint:fix: Run Prettier, ESLint and Stylelint in fix mode
  • lint-staged: Run lint-staged on staged file

Getting Started

To 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

Developing

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

Building

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.

Contributing

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.

Licence

MIT

About

This is a lightweight and customizable template for starting a new Svelte project. It includes a minimal setup with essential tools like Vite, ESLint, Prettier, and Husky pre-configured to help you write clean and consistent code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published