Skip to content

Instantly share code, notes, and snippets.

@mchandleraz
Last active November 13, 2015 17:57
Show Gist options
  • Save mchandleraz/8e37e666291e025c9705 to your computer and use it in GitHub Desktop.
Save mchandleraz/8e37e666291e025c9705 to your computer and use it in GitHub Desktop.
client-side dependency management within b2c-portal

Problem:

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.

Solution(s):

  • 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

bower

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment