webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
366 stars 84 forks source link

Add Vue as web component library #1155

Open odahcam opened 6 years ago

odahcam commented 6 years ago

I think Vue should be here too: https://www.webcomponents.org/libraries

Vue CLI 3 allows you to compile Vue projects as web components.

FluorescentHallucinogen commented 6 years ago

@odahcam

There is a fine line between web component libraries and frameworks that support web components (see https://custom-elements-everywhere.com).

E.g. the new version 6 of Angular also supports web components (see Angular Elements), but Angular is the framework, not web component library.

There are other web component libraries which are still not presented in https://www.webcomponents.org/libraries, e.g. Stencil.

FluorescentHallucinogen commented 6 years ago

Friendly ping @robdodson. :wink:

odahcam commented 6 years ago

Understood, I thought if I use a tool like a library I could call it a library, but that's okay, another section can be created to list'em if you like.

About Stencil, I believe that some of the listed libraries could be updated even if you don't want to add all, but the ones "in the hype" like Polymer should be there.

Thx for the response. 🙂

FluorescentHallucinogen commented 6 years ago

BTW, the previous version of catalog also listed Bosonic and Brick, but, IMO, they are more UI libraries (libraries i.e. collections of web components) than web component libraries (libraries for creating web components).

There are also Aurelia (https://github.com/aurelia/web-components), Glimmer (https://glimmerjs.com/guides/using-glimmer-as-web-components), CanJS, etc…

Riot (http://riotjs.com, https://github.com/riot/riot) and Gluonjs (https://github.com/ruphin/gluonjs) looks interesting.

FluorescentHallucinogen commented 6 years ago

There is another class of web component libraries — base classes (mixins) for creating web components (custom elements), e.g. lit-element, RZA, GZA, Nutmeg, etc…

Switzerland is also a very interesting web component library.

robdodson commented 6 years ago

Hey, @FluorescentHallucinogen I don't maintain this site, so I'm not the right person to ping.

@samuelli can correct me, but I think this is the file that would need to be changed to update this page (https://github.com/webcomponents/community/blob/master/static/libraries.md). I'm sure he would appreciate a pull request if y'all think there are good libraries to add.

FluorescentHallucinogen commented 6 years ago

@robdodson I know perfectly well that you are not a maintainer of this site and what files to modify. ;)

I've pinged you to hear what you can say about the difference between web component libraries and frameworks that support web components, because you have been involved in web components for many years.

I.e. to decide, should we add things like Vue, Angular, etc. to https://www.webcomponents.org/libraries?

robdodson commented 6 years ago

@robdodson I know perfectly well that you are not a maintainer of this site and what files to modify. ;)

I see. There was no context provided in the ping so it wasn't clear to me what you wanted ¯_(ツ)_/¯

I've pinged you to hear what you can say about the difference between web component libraries and frameworks that support web components, because you have been involved in web components for many years.

I imagine in another year or so they'll be more libraries that let you output web components (I believe Svelte does, and Vue, as has been pointed out) and it seems like the current section isn't well maintained (it's missing Stencil, which is a pretty big one). I guess I'm wondering if this page offers significant value, or if there is another, more scaleable way to present this information.

In the near term, if a tool lets you output a web component that others can use, then it seems fair to add it to this section. So Vue and Svelte, etc. But I'd also be curious to see the analytics for this page, and in particular, how often people are clicking on these links.

odahcam commented 6 years ago

But I'd also be curious to see the analytics for this page, and in particular, how often people are clicking on these links.

I found the page very useful, to learn about libs I didn't knew they exist, but finding this page was surprising difficult.