DEV Community

The package manager for React components

Boris Siscanu on December 27, 2018

Update: Webpack was deprecated in favor of Stencil compiler (v. 0.5.0) We released an alpha version of the zero-configuration package manager for ...
Collapse
 
gorango profile image
Goran Spasojevic • Edited

"The package manager for web components"

Oh, great!

"...supports only React components, no Angular or Web components..."

Oh, wait...

Thanks for the click-bait 😒

Collapse
 
bsiscanu profile image
Boris Siscanu

Hey Goran,

Changed the name of the article. It was not supposed to be a click-bait.

Cheers!

Collapse
 
khophi profile image
KhoPhi

I believe work on angular or others will be done too, no?

Thread Thread
 
bsiscanu profile image
Boris Siscanu • Edited

Hi Nkansah,

Thanks for the question. We received a lot of negative feedback on the idea of separating Angular/React components and completely ignoring Web Components in alpha release, it made us to redo our backlog and prioritize web components support.

Now, we consider to create a package manager for web components only, where any web component could be reused with any framework Angular/Vue/React, but without the support for existing framework specific components.

What do you think about?

Collapse
 
squidbe profile image
squidbe

Kudos on your effort. However, you should change the article title. It's rather off-putting to read an article entitled "The package manager for web components" only to find that it doesn't actually support web components. I get that it's alpha, but I'm not interested unless it supports actual web components (or components from a library like Polymer). Thanks.

Collapse
 
jordanaustin profile image
Jordan Austin

I agree, it would be great to have titled this: The Package Manager for React Components

It's an interesting concept, but it's not currently a package manager for Web Components 😏

Collapse
 
bsiscanu profile image
Boris Siscanu

Hi Jordan,

Changed the title of the article. Thanks for the tips.

Peace!

Thread Thread
 
jordanaustin profile image
Jordan Austin

Much clearer, thanks!

Thread Thread
 
bsiscanu profile image
Boris Siscanu • Edited

I’m happy to help.

Collapse
 
p3xrobot profile image
patrikx3

Do not you think we rather have one package manager, then multiple like bower? Look Ruby, Python, PHP, Perl, they use 1. What is better to use two instead of one?

I see your backend is based on Scala eg. Java, that is that have Maven and Gradle. I suppose people like one repo like using one that only for React. :)

Just an opinion...

Collapse
 
bsiscanu profile image
Boris Siscanu

Hi Patrik,

Interesting point. We just want to put away HTML & CSS from the NPM registry, in our opinion it is not the best place to keep it. In the end of the day, NPM is Node.js registry.

Have a good one!

Collapse
 
p3xrobot profile image
patrikx3

So isnt it like bower then?

Thread Thread
 
bsiscanu profile image
Boris Siscanu

Well, our awesome community of web developers has cutting edge projects like webcomponents.org and Polymer, but we don't have a place to call home, a place where components could be stored. So, Domy is more like a HTML/CSS/JS storage, where JS is just a guest.

Cheers!

Thread Thread
 
p3xrobot profile image
patrikx3

Ok, got it. Thanks.

Collapse
 
sleagon profile image
sleagon

I got confused some how, what's the difference between domy and npm? I can import package from node_modules anyway?

Collapse
 
sleagon profile image
sleagon

You mean i can just publish one of my component in my repo, which is a single jsx, and reuse it in other repo instead of copying the file or make a npm package and publish it with npm? What if my component depend on another js/css file?

Collapse
 
bsiscanu profile image
Boris Siscanu

Hi Sleagon,

First of all, thank you for your question and sorry for confusing you. I'll try to explain it better in the next article.

Now, you are completely right, it is just another way to publish and share components, nothing more. At the moment, Domy will webpack components completely with their JS dependencies. In next release, the entire tree of dependent components will be created, detecting all imported components and packing each one of them separately, in "isolated environment".

We haven't tested yet import of standalone CSS files into the component, but it will be nailed as fast as possible.

Have a good one!

Thread Thread
 
sleagon profile image
sleagon

Actually, i do think it pretty meaningful once the web component part finished, nice try~~

Collapse
 
seanmclem profile image
Seanmclem

Excited to try it. Where are the components stored online?

Collapse
 
bsiscanu profile image
Boris Siscanu • Edited

Hey SeanKPS,
Thank you so much for your attention, it matters a lot for us.
We store all components in cloud (GCP). We built an awesome backend for this purpose using Scala, Play! and Etcd.
Peace!

Collapse
 
mrshafiqueqadri profile image
M Shafique Qadri

Its awesome lib.
Will try for sure.