[Summary] Just Use a Monorepo
Link: Just use a monorepo
Buttondown, a newsletter service, recently migrated their projects from separate microrepositories to a single monorepo. They strongly recommends that a software business use monorepo as early as possible. The followings are pros and cons in the article and its reference.
Pros:
- API rolls out smoothly with up-to-date documentation. There should be no conflict between front-end and backend of the system.
- Avoid context-switching among different workspaces, which might have slightly different configurations.
- Fix dependency issues. Packages and tools now have an universal version number. We don’t need to keep track of version number of every dependency.
- Easier to debug if we know exactly which commit # works fine.
- Decrease overhead of cross-project changes.
- Easier to set up dev environment and run all tests.
Cons:
- Permission management will be hard if you want to hide some parts of the repo.
- Hard to open-source some parts of the repo.