We are setting up a pattern library.
It's use is on the one hand to document and display our UI elements in a web view. On the other hand, it should also be the place where components are built. The actual web application should then consume the components (markup, CSS and JavaScript) from the pattern library and only display them.
We are mainly using PHP, mustache and javascript in our frontend at the moment, this is why we decided to build out components in the pattern library using those technologies.
At the same time, we are rethinking the technologies used in our frontend completely and are looking out to build certain parts using React or webcomponents (stencil).
The tool we use for the pattern library (fractal) makes you choose the template engine in a config. This means: choose mustache, no react and vice versa.
Has anyone here already set up a pattern library combining multiple technologies successfully - and is able to consume components in the fronend application, as well as display components, built in different technologies, in the pattern library?
If yes, I would very much appreciate your shared experience. Especially in terms of how you set up the pattern library, if you used a certain tool that helped a lot and how the frontend of the web application consumes the components.
Best wishes!