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.
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:
- In VS Code, in a TypeScript file, press Ctrl + Shift + p
- Choose
Select TypeScript Version
- Pick
Use Workspace Version
The repo includes the following packages/apps:
docs
: a Next.js appweb
: another Next.js appui
: a stub React component library shared by bothweb
anddocs
applicationseslint-config-custom
:eslint
configurations (includeseslint-config-next
andeslint-config-prettier
)tsconfig
:tsconfig.json
s used throughout the monorepo
Each package/app is 100% TypeScript.
This Turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
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"
To build all apps and packages, run the following command:
cd turborepo-yarn-zi
yarn build
To develop all apps and packages, run the following command:
cd turborepo-yarn-zi
yarn dev
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.