Monolithic repositories maintain all packages in one project. Big company like Facebook(React), Google(Angular), Meteor, NestJS, Babel, and etc.
Most commonly used monolithic tool is lerna.
Lets get our hands dirty!
npm install -g lerna
Create a folder and setup Lerna
lerna init && npm install
This will generates following file by default
- lerna.json(config for the lerna)
- package.json(all our packages will go here)
Time for creating new package
lerna create api
lerna create salesforce
This will publish you packages in NPM registry, you can also mark this repo as private.
We have seen what is monolithic and how to use Lerna to achieve this pattern also we have gone through how to create packages in monolithic repos and publishing it.