Skip to content

Proposal: More Information for Vue 3 Component Library Authors #1748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tderflinger opened this issue Jun 2, 2022 · 3 comments
Open

Proposal: More Information for Vue 3 Component Library Authors #1748

tderflinger opened this issue Jun 2, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@tderflinger
Copy link

Hi Vue Docs Team,

I really like your new Vue 3 documentation website, well done :)

As an author of an open source Vue 3 component library I found it a bit hard to find information on the recommended way and best practices to create and publish an open source Vue 3 web component library.

With Vue 3 web component library I mean an encapsulated component that contains a UI and some JS logic and has a well-defined API using props. The component library is meant for consumption by third-party applications that integrate the component in their Vue (or even non-Vue) web application so that they can reuse the functionality.

Some information I found here on Web Components: https://vuejs.org/guide/extras/web-components.html#web-components-vs-vue-components

But then, what is the best practice to create and publish a Vue 3 component library? Should I use Vite, with what settings (ES Modules vs. CommonJS) and what is the recommended way to create documentation of the component (e.g. using VuePress). Also, what are some good ways to publish (only via NPM?) and market Vue component libraries?

Would be nice to see some more information in this regard. :)

@skirtles-code skirtles-code added the enhancement New feature or request label Jun 2, 2022
@skirtles-code
Copy link
Contributor

Related: #965, #1060.

@Barbapapazes
Copy link

Hey, I publish a complete guide on my website: https://soubiran.dev/series/the-complete-guide-to-building-a-vue-js-component-library

@RayBB
Copy link

RayBB commented Jan 18, 2025

I wrote a blog post about migrating Vue 2 -> 3 with Web Components and Vite.
It was a challenge and there are some suggestions for improvements at the end including updating the docs for such.
We're not exactly library authors but it would still be helpful to have better docs.
https://blog.rayberger.org/vue-3-web-components-open-library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants