The tool for managing the monorepo in example project nextjs + reactjs has been extracted out as Lerna
This is template monorepo, it includes:
- 1 package for reactjs
- 1 package for nextjs
- 2 packages commons
Hoisting has a few benefits:
- All packages use the same version of a given dependency
- Can keep dependencies at the root up-to-date with an automated tool such as Snyk
- Dependency installation time is reduced
- Less storage is needed
git clone https://github.com/nnhjs/template-monorepo-nextjs-reactjs.git
cd template-monorepo-nextjs-reactjs
npm install
npm run bootstrap
rm -rf .git
git init
git add .
git commit -m 'config project complete'
git remote add origin <your-url-git>
git branch -M main
git push -u origin main
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.