Getting Started
Prerequisites
Create a new CoSpace
Initialize
npx cospace@latest init my-cospace
Link your (mono)repos
cd my-cospace
Clone all the repos you want to link together under the
repos
sub directory.Update the
pnpm-workspace.yaml
file with all the packages you want to add to your CoSpace. By default all packages under therepos
directory will be added to your CoSpace, but you probably want to add them at a more granular level.Update the
cospace.code-workspace
file with all the repos you want to add to your vscode multi-root workspace.Run
pnpm exec cospace override
to link all the packages in your CoSpace together.Run
pnpm install
to install all the packages you've added to your CoSpace.Run
pnpm build
to build all the packages you've added to your CoSpace using your monorepo task runner. By default we use lage, but turborepo should theoretically work.