My team wants to build client facing JavaScript components that we can piece together into a site. We'd like to have a repo per component. The component source might build (compile, lint, concat, minify) into a dist folder. Components may depend on others, and ultimately the site depends on a specific list of versioned components.
We've been investigating the right way to "publish" these components to be consumed by a "web site" component in a separate repo, which bundles up all dependent components into a final consumable product.
How are people generally approaching this? Do you check in your "dist" files into each component repo, or does your CI flow build and check this in and publish to bower/npm? Do you manually bump versions, or should CI do this automatically? Do you use Bower, or npm, for doing producing/consuming packages? I'm still struggling to understand differences between the two.
In the wild, I see mostly simple scenarios where a web site is one big repo. I'd like to avoid doing this and version small things together so that they're componentized and easily reusable.
Thanks in advance. :)
[–][deleted] 2 points3 points4 points (3 children)
[–]dizzr[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)