DesignRevision/shards-ui

Why are there dependencies?

vikr01 opened this issue ยท 5 comments

How is this package intended to be used with node?

From what I can tell, the javascript in src is being bundled into dist with webpack and since the target is web that means those dependencies will be bundled in as well -- which means they'd only need to be devDependencies so that the user doesn't need to install it when they install the package.

hisk commented

Hey @vikr01, ๐Ÿ‘‹

Sorry for the delay! You are correct. Would you like to handle this one too? Thanks for your help so far, it's much appreciated! ๐Ÿ˜Š

The only dependency left I guess should be just bootstrap since it's required by the main scss file only (as far as I remember) and it's not assumed to be installed. I'm not quite sure I understand what you mean with node, or that's what you were referring to?

As far as I can see from the dist folder, there is no reference to bootstrap except in source maps. I don't think this project needs any dependencies at all.

hisk commented

(sorry for the delay)

@vikr01 Oh! I see what you mean now, and you're right. ๐Ÿ˜„ Some of the dependencies are redundant, except for Bootstrap which is used here.

@hisk That's the SCSS in src, seems that gets bundled into the CSS in dist.

hisk commented

@vikr01 You are correct, but removing bootstrap is assuming that everyone is using the compiled styles only. That would force some developers that prefer to have the flexibility of compiling the assets and overriding certain styles to manually install bootstrap, which is a bit counter-intuitive.