Re:From a Single Repo, to Multi-Repos, to Monorepo, to Multi...
by dgnemo on Sunday August 22, 2021 @02:07PM
(#28267895)
Thanks for sharing your experience! I can see how you were struggling trying to handle different "versions" in subsets of the repo.
In my experience the "monorepo" workflow implies a "working on master/head" mindset, but this is not always the best approach depending on your specific needs.
Re:From a Single Repo, to Multi-Repos, to Monorepo, to Multi...
by FranksTV on Tuesday August 31, 2021 @07:15AM
(#28366379)
Lerna let's you version things independently, and if you use something like conventional commits / commitizen it can auto detect whether versions are major or minor.
When you make a version with lerna it auto-tags the commit with the version numbers of the components, so consumers can still depend on a specific version of a component.
I'm setting it up now at a new company and its pretty amazing.
I said there were a number of frustrations, but that was the driver.
In the new repo format each repo produces a single library/module, and can be versioned as a whole. When I run an application for dev, I can run a given library from a release or from live code (with a dev server serving ES modules from a configured path). This works well when one of the repos is not changing. But I end up developing in a significant number of repos at the same time, so I just configure it to run from live code rather than release for all those libraries i'm working on. This feels like working with a monorepo except I have the hassle of managing commits to all thse repos. Long story short, right now I am working out of the master branch because I screwed up commits. You may have figured out by now my strength is not in dev ops.