rslib-svelte-simple-template Svelte Themes

Rslib Svelte Simple Template

A simple starter for creating a Svelte component library with Rslib.

rslib-svelte-simple-template

A simple experimental starter for creating a Svelte component library with Rslib.

Development

Install dependencies:

pnpm install

Build the library:

pnpm build

Run the library build in watch mode:

pnpm dev

Run tests with Rstest:

pnpm test

Run type checking:

pnpm type-check

Playgrounds

There are two Rsbuild playgrounds.

Run the source playground, which imports from src:

pnpm run play:src

Run the dist playground, which imports from dist/index.js and dist/index.css:

pnpm run play:dist

play:dist runs pnpm run build first so the compiled files exist.

Top categories

Loading Svelte Themes