0.6.0 • Published 3 years ago
cospace v0.6.0
CoSpace
Setup a CoSpace to link multiple (mono)repos together!
Getting Started
Pre-requisites
Create a new CoSpace
Initialize
npx cospace@latest init my-cospaceLink your (mono)repos
cd my-cospaceClone all the repos you want to link together under the
repossub directory.Update the
pnpm-workspace.yamlfile with all the packages you want to add to yourCoSpace. By default all packages under thereposdirectory will be added to yourCoSpace, but you probably want to be more specific.Update the
cospace.code-workspacefile with all the repos you want to add to your vscode multi-root workspace.Run
pnpm installto install all the packages you've added to yourCoSpace.Run
pnpm buildto build all the packages you've added to yourCoSpaceusing your monorepo task runner. By default we use lage, but turborepo should work as well.
Advanced Usage
override
npx cospace@latest override- Automatically update the
pnpm.overridessection of theCoSpace'spackage.json, to ignore semver and always use the local package version from the workspace. Useful for when you have pre-release versions of packages in your workspace.
purge
npx cospace@latest purge- Recursievely delete all
node_modulesfrom theCoSpace.