Crab Stash monorepo (Next.js, React, Astro, TypeScript, Docker, ESLint, Jest, Prettier, Tailwind, Storybook)
This turborepo uses pnpm as a package manager. It includes the following packages/apps:
.github
└─ workflows
└─ CI with pnpm cache setup
.vscode
└─ Recommended extensions and settings for VSCode users
apps
├─ app
| └─ Next.js app
└─ docs
└─ Docusaurus app
packages
├─ ui
| └─ a stub React component library shared by apps created with Storybook.js
├─ tsconfig
| └─ `tsconfig.json`s used throughout the monorepo
└─ linting
└─ `eslint` configurations (includes `eslint-config-next` and `eslint-config-prettier`)
This turborepo has some additional tools already setup for you:
- TypeScript for static type checking
- ESLint for code linting
- Jest test runner for all things JavaScript
- Prettier for code formatting
- GitHub Actions for publishing the component library
- Docker as an alternative build/development tool
- Tailwind a utility first css framework for styling
- Storybook.js build component driven UIs faster
To build all apps and packages, run the following command:
cd turborepo-starter
pnpm run build
To develop all apps and packages, run the following command:
cd turborepo-starter
pnpm run dev
Turborepo can use a technique known as Remote Caching (Beta) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
By default, Turborepo will cache locally. To enable Remote Caching (Beta) you will need an account with Vercel. If you don't have an account you can create one, then enter the following commands:
cd turborepo-starter
npx turbo login
This will authenticate the Turborepo CLI with your Vercel account.
Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
npx turbo link
Learn more about the power of Turborepo: