Skip to content

Modified Turborepo starter configured with Yarn zero-installs

License

Notifications You must be signed in to change notification settings

mlaposta/turborepo-yarn-zero-installs

Repository files navigation

Modified Turborepo starter updated with Yarn Berry zero-installs

This is a modified Turborepo starter. The full tutorial with step-by-step instructions can be found on wheresbaldo.dev.

Note: This is NOT an official Turborepo starter, refer to https://github.com/vercel/turbo for the official ones.

Modifications

This modified Turborepo uses the newer yarn berry with zero-installs for package management. The TypeScript config has also been pre-configured to work with VS Code, but you'll need to manually tell VS Code how to recognize the TypeScript version, as follows:

Update VS Code to use the workspace TypeScript version

  • In VS Code, in a TypeScript file, press Ctrl + Shift + p
  • Choose Select TypeScript Version
  • Pick Use Workspace Version

What's inside?

The repo includes the following packages/apps:

Apps and Packages

  • docs: a Next.js app
  • web: another Next.js app
  • ui: a stub React component library shared by both web and docs applications
  • eslint-config-custom: eslint configurations (includes eslint-config-next and eslint-config-prettier)
  • tsconfig: tsconfig.jsons used throughout the monorepo

Each package/app is 100% TypeScript.

Utilities

This Turborepo has some additional tools already setup for you:

Setup

To use this repo, simply fork & clone as usual, or download it using degit to start with no git history:

npx degit mlaposta/turborepo-yarn-zero-installs turborepo-yarn-zi
cd turborepo-yarn-zi
yarn
git init . && git add . && git commit -m "Init"

Build

To build all apps and packages, run the following command:

cd turborepo-yarn-zi
yarn build

Develop

To develop all apps and packages, run the following command:

cd turborepo-yarn-zi
yarn dev

Further info

View the full tutorial on wheresbaldo.dev for instructions on how to build this form from scratch.

Refer to the official Turborepo github for the original Vercel documentation.

About

Modified Turborepo starter configured with Yarn zero-installs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published