Example of how to use yarn
and crosslink
to manage multiple workspaces in a full-stack project.
- Contains three workspaces
workspaces/client
,workspaces/server
andworkspaces/common
. - The client is bootstrapped with
create-react-app
- The server is bootstrapped with
generator-express-no-stress
- Each workspace contains an actual yarn workspace with a
packages/*
structure. client
packages can access all otherclient
packages and allcommon
packagesserver
packages can access all otherserver
packages and allcommon
packages
Clone this repo. Run yarn setup
or launch setup.sh
.