- Install pnpm.
pnpm i
pnpm run dev
VS Code
The workspace settings for VS Code are set in ./.vscode/settings.json
and a
few recommended extensions are in ./.vscode/extensions.json
. Applying the
recommended settings should enable prettier to format files on save.
There are several ways you can run scripts in the monorepo.
Workspace scripts are run from the root directory of the repo. These scripts are often running similar scripts across all relevant packages or scripts that affect the monorepo as a whole.
Examples
pnpm run dev
run development server for all apps and packges in parallel.
If you want to run a script for a single app/package you can filter with pnpm
Examples
pnpm --filter {package-name} {script-name}
In order to use code from other packages in this monorepo, they must be
installed as a dependency. To do that, you can run the following command:
pnpm add {package-to-install-name} --filter {package-installing-into-name} --workspace
This repo is a monorepo powered by pnpm workspaces and turborepo.
- https://blog.nrwl.io/setup-a-monorepo-with-pnpm-workspaces-and-speed-it-up-with-nx-bc5d97258a7e#d69f
- eforce single version policy
- setup eslint config and prettier