Simple monorepo setup for Node.js projects with yarn workspaces
, prettier
and pre-commit
hook.
- Simply clone the repo and change the name and author in the
package.json
:
git clone https://github.com/NivEz/monorepo-setup.git <prject name>
-
To initialize new
git
simply delete the.git
hidden folder and use the commandgit init
. -
To install the dependencies just use the command
yarn
. -
You can edit / delete this
README.md
file.
- Create a new directory named packages.
- Inside packages create another directory for your wanted workspace.
- Use
yarn init
oryarn init -y
to initialize yarn. - Inside the
package.json
of the new package you can change thename
field to your desired workspace name.