This webcomponent library follows the open-wc recommendation. Open liist-webcomponents storyook for documentation.
npm i liist-webcomponents
<script type="module">
import { LiistBttn } from 'liist-webcomponents';
</script>
<liist-bttn>Hello World</liist-bttn>
To run a local instance of Storybook for your components, run
npm run storybook
To build a production version of Storybook, run
npm run storybook:build
To run a local development server that serves the basic demo located in demo/index.html
npm run dev
The storybook is automatically build and deployed with Netlify, whenever there is a new commit to master. It is hosted here: https://liist-webcomponents.netlify.app/?path=/docs/
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.