A sample setup of a Turborepo monorepository with shared Tailwind CSS configurations.
git clone https://github.com/cvrlnolan/turborepo-tailwindcss.git
package.json
files across the monorepo apps by running yarn install
from the project root directory.yarn dev
. To start an individual app the monorepo, run:
yarn workspace <name> dev
(name: is found/set in the package.json for each individual app folder)apps/docs
: a sample documentation Next.js appapps/web
: a sample web Next.js apppackages/ui
: a stub React component library shared by both web
and docs
applicationspackages/config
: shared tailwindcss
, eslint
configurations (includes eslint-config-next
, eslint-config-prettier
, eslint-plugin-prettier
etc..)packages/tsconfig
: tsconfig.json
s which can be used by extending them throughout the monorepo