This is an example monorepo that uses Yarn workspaces. There are two workspaces in the repo: workspace-a
, and workspace-b
. Both workspaces start HTTP servers using yarn serve
, each returning different responses.
- Start at the repo root
- Run
yarn install
to install all dependencies - Change into either workspace directory:
cd workspace-a
; orcd workspace-b
- Start the server:
yarn serve
- Select your git repo
- Keep the source directory set to the default,
/
- If you have a build script in
package.json
, set the build command to:cd workspace-b yarn build
- Set the run command to:
cd workspace-b yarn serve