brog
A tool for managing multiple related JavaScript projects, the better replacement of lerna
brog
do?
What can With the help of brog
, we need not to put multiple npm packages into a monorepo, such as babel
does.
brog
could coordinate multiple arbitrary already-existed standalone but related npm packages.
Generally, if you want to do something as lerna does, and you don't want a monorepo, or can't put everything inside a monorepo (because the npm packages already exist), brog
will be a good choice.
Besides, brog
could
- handles peer dependencies
Usage
# Install brog
npm i -g brog
# Create a workspace `foo` and set `foo` as the default workspace
brog create foo --use
cd /path/to/project-1
# Add the current directory to the default workspace(`foo`),
brog add
# Add a specified directory to a certain workspace
brog add --cwd /path/to/project-2 -w foo
# This will link the dependencies
brog bootstrap
# Then make changes to project-1 and project-2,
# inside /path/to/project-2
brog publish
A vscode extension is also available to help it much easier to add repos into a single workspace.
Commands
Documentations
- Frequently asked questions