This Turborepo starter is maintained by the Turborepo core team.
This example also shows how to use Workspace Configurations.
Run the following command:
npx create-turbo@latest -e kitchen-sink
This Turborepo includes the following packages and apps:
api
: an Express serverstorefront
: a Next.js appadmin
: a Vite single page appblog
: a Remix blog@devades/eslint-config
: (turbo-config repo) ESLint configurations used throughout the monorepo@devades/jest-presets
: (turbo-config repo) Jest configurations@devades/logger
: (turbo-config repo) isomorphic logger (a small wrapper around console.log)@repo/ui
: a dummy React UI library (which contains<CounterButton>
and<Link>
components)@devades/typescript-config
: (turbo-config repo) tsconfig.json's used throughout the monorepo
Each package and app is 100% TypeScript.
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
Where its installed you may need to add a safelist to tailwind.config.js Because if styles are used in imported component that weren't used on the source page tailwind won't have loaded them for performance / just-in-time reasons, the safelist ensures they're available Possibly some of the styles in the safelist that are theme based need to be moved to tailwind-config pkg or a new config package in design system for theme
safelist: [
'bg-zinc-900',
'border-zinc-900',
'text-3xl',
'lg:text-4xl',
],
Instructions for installing packages or releasing from command line to devades github organisation as lari-ks github user (Admin user on devades org)
git config user.email "email"
npm login --scope=@NAMESPACE --auth-type=legacy --registry=https://npm.pkg.github.com
npm login --registry=https://npm.pkg.github.com
lari-ks as username
new personal access token as password, added as secret to repo settings secrets