In the Fullstack Developers 3.0 event, this repository served as a hands-on demonstration to explore the concept and use cases of monorepo using lerna.
A monorepo is a single repository that contains multiple projects. In this repository, we have a projects directory that contains two projects: ts-app and js-app.
-
Code sharing: We can share code between projects without having to publish the library to a package registry.
-
Atomic commits: We can commit changes to multiple projects in a single commit. This is useful when we want to make changes to the library and the app that uses the library.
-
Single versioning: We can version all the projects together. This is useful when we want to release a new version of the library and the app that uses the library.
git clone git@github.com:junrillg/monorepo-setup.gitnpx lerna bootstrapnpx lerna run start --streamnpx lerna run test --streamnpx lerna run build --stream