Skip to content

nnhjs/template-monorepo-nextjs-reactjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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

Monorepo

## What can monorepo do? Monorepo allows you to manage more packages in one project.

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

Installation

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

Contributing

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.

License

MIT