Includes:
- Apps:
- React Mobx Starter App
- Packages:
- Shared
tsconfigs
- Shared
eslint
- Shared MobX types
- Shared Types
- Shared UI Components
- Shared
- Package Manager: pnpm - advantages: workspaces, just one
node_modules
folder with symlinks - Shared Packages can be included into apps via package name:
{
...
"dependencies": {
...
"shared-types": "workspace:*"
...
}
}
Can be imported into ts
files with:
import { CatRoute } from "shared-types";
Example: cats.ts
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Prettier for code formatting
This repository is used in the npx create-turbo@latest
command, and selected when choosing which package manager you wish to use with your monorepo (pnpm).
To build all apps and packages, run the following command:
cd my-turborepo
pnpm run build
To develop all apps and packages, run the following command:
cd my-turborepo
pnpm run dev
Learn more about the power of Turborepo: