This repo uses CoSpace to setup a convenient local dev environment linking multiple (mono)repos together for iTwin development.
- clone this repo
git clone https://github.com/aruniverse/itwin-cospace.git
- clone itwinjs repos you want to link together under the
repos
subdir:cd repos
- clone the itwinjs-core repo
git clone https://github.com/iTwin/itwinjs-core.git
- clone the iwin viewer repo
git clone https://github.com/iTwin/viewer.git
- clone any additional repos you want to link together
cd ..
- update the
pnpm-workspace.yaml
file as needed
- use the local version of the packages throughout your cospace
this just runs cospace override
pnpm setOverrides
- install
pnpm install
- build
pnpm build
- develop faster and enjoy
- make any code changes you want, and then just do another build. lage will cache builds, so it should be very quick to see your changes