dev-komenzar / riceplate

Frontend App Boilerplate with SvelteKit, Bun, TailwindCSS, Autoprefixer, ESLint, StyleLint, MSW and Husky

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Riceplate

LICENSE

Rice-plate is my frontend app boilerplate for developping with SvelteKit.

  • SvelteKit
  • Runtime: Bun
  • PostCSS and TailwindCSS
  • Autoprefixer
  • Format & Lint: ESLint
  • CSS Lint: StyleLint
    • ❌ No Prettier
  • Husky + staged
  • Mocking library: MSW
  • Avoid mistakenly running npm, yarn, and pnpm commands

Installation

Read this installation to install Bun. Clone this repository to your local and run bun install.

DON'T use npm, yarn, pnpm or other package managers!!!

VS Code

Search Bar > Show and Run Command (Shift + Command + P) > Tasks: Run task Tasks are already configured to use Bun.

Mock

Use MSW for mock testing. Write handlers to src/mocks/handlers.ts. MSW is loaded only when development mode. See src/hooks.client.ts and src/hooks.server.ts.

Create .env file in root dir and set two values: ENABLE_MSW_SERVER, PUBLIC_ENABLE_MSW_CLIENT as true if you want to use msw.

About

Frontend App Boilerplate with SvelteKit, Bun, TailwindCSS, Autoprefixer, ESLint, StyleLint, MSW and Husky

License:MIT License


Languages

Language:JavaScript 48.4%Language:TypeScript 37.7%Language:HTML 7.6%Language:Svelte 3.8%Language:CSS 2.5%