laws-africa / law-widgets

Web components for Akoma Ntoso documents
GNU General Public License v3.0
0 stars 0 forks source link

Improved storybook integration #154

Open musangowope opened 2 years ago

musangowope commented 2 years ago

Currently, the way we integrate storybook with our stencil component library isn't the greatest. We want to implement storybook in a better way with our stencil components.

musangowope commented 2 years ago

I have made sample repo with react and storybook integration https://github.com/musangowope/poc-stencil-component-library

musangowope commented 2 years ago

NX Dev

This is monorepo tool used to house multiple technologies under repo and focuses on integrations and workflows between technologies. Recommended by ionic team

Main advantage:

Great integrations and workflows between stencil components and react component generation and stencil components to storybook generation

Unknowns:

Doing some experimentation on https://github.com/musangowope/poc-stencil-component-library

Points of reference: https://ionicframework.com/blog/building-react-and-angular-component-libraries-with-stencil-and-nx/ Getting started building a react and angular library from stencil components with nx

Adding storybook https://ionicframework.com/blog/how-to-use-storybook-with-stencil/

Just found this now, its a more integrated approach https://www.youtube.com/watch?v=sFpqyjT7u4s Storybook plugin integration