We want to be able to version and deploy our b2c-custom-elements individually/independently, to help make our deployments more scalable with less friction.
- git submodules
- bower
summary: git submodules will allow us to have a much cleaner seperation between individual custom elements. Unfortunately, they also introduce a lot of complexity and overhead for developers. By leveraging a package manager like bower alongside a git workflow and architecture like the team discussed, we can have a scalable and maintainable dependency management system that allows us to deploy specific versions of our custom elements to the b2c-portal, independent of each other. Bower will require splitting our b2c-custom-elements
repo into individual repos for each element, but the benefits far outweigh the amount of work this transition would require.
git submodules
- https://git-scm.com/book/en/v2/Git-Tools-Submodules
- https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407
- http://somethingsinistral.net/blog/git-submodules-are-probably-not-the-answer/
bower