yarn install
This is a sample PoC for monorepo development. Goals are to have a TS/React/Webpack build but focus on Developer Experience
How can we develop in a monorepo but make the experience great?
During exploration, it is great to use Verdaccio to deploy to a private registry
$ yarn install global verdaccio
$ verdaccio
This repo uses Yarn V2
npm install -g yarn
yarn set version berry
yarn set version latest # use the latest version (v2/v3)
yarn set version classic # use the V1 versions
Read more here:
# .yarnrc.yml
npmRegistryServer: "http://localhost:4873"
yarn server dev
yarn ui dev
Note - You don't need to pre-compile the packages/common
code. This is because of Typescript References.
yarn server start
: Runs the sample "server"
yarn ui start
: Starts the UI
https://github.com/CryogenicPlanet/typescript-monorepo-example
https://github.com/yakkomajuri/react-from-scratch
TBD - probably use lerna
*Inside of a package/ **
yarn npm publish