Skip to content

equilpres/sveltekit-typescript-cloudflare-boilerplate

Repository files navigation

SvelteKit TypeScript Cloudflare Boilerplate

Boilerplate for SvelteKit projects in TypeScript, optimized for Cloudflare Pages

⚠️ When deploying, use SvelteKit preset and set NODE_VERSION env to 20.15 for compatibility

Prerequisites

Getting Started

  1. Clone repo:

    git clone https://github.com/equilpres/sveltekit-cloudflare-typescript-boilerplate.git
  2. Go to project dir:

    cd sveltekit-cloudflare-typescript-boilerplate
  3. Install deps:

    pnpm install

Scripts

  • dev: Start dev server.

    pnpm dev
  • build: Build project.

    pnpm build
  • preview: Preview prod build.

    pnpm preview
  • sync: Sync files with SvelteKit.

    pnpm sync
  • svelte-check: Check Svelte files.

    pnpm svelte-check
  • lint: Lint code.

    pnpm lint
  • fmt: Format code.

    pnpm fmt
  • bump: Update deps.

    pnpm bump

License

MIT