svelte-web-component Svelte Themes

Svelte Web Component

build, lint & test web components using svelte

svelte-web-component

based on open-wc recommendation.

Usage

<script type="module">
  import './svelte-wc.js';
</script>

<svelte-wc></svelte-wc>

Linting with ESLint, Prettier, and Types

To scan the project for linting errors, run

npm run lint

Testing with Karma

To run the suite of karma tests, run

npm run test

To run the tests in watch mode (for TDD, for example), run

npm run test:watch

Demoing with Storybook

To run a local instance of Storybook for your component, run

npm run storybook

To build a production version of Storybook, run

npm run storybook:build

Top categories

Loading Svelte Themes