DEV Community

Discussion on: The package manager for React components

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~~