Skip to content

oolio-group/monorepo

Repository files navigation

Turborepo template

FOSSA Status

Turborepo

Pros

  • Good task runner performance
  • Local and distributed build cache
  • Prune command to trim monorepo for a specific app/package (Faster CI builds)
  • Less configuration required for setup or adding new packages
  • Great developer/teams freedom

Cons

  • No built in schematics support
  • Prune works with yarn classic only

Turborepo vs Nx vs Rush

  • Some arguments here and there

Package manager

Why yarn classic?

To take advantage of turbo prune to speed up CI builds. Turbo prune may support other package managers in the future. It is relatively very easy to switch to npm or yarn berry if needed.

For now the reduced CI build time with turbo prune outweighs a possibly slower full install

Project structure

  • Show directory tree

Instructions

# Do a full install of package dependencies
yarn install

# Run a full build
yarn run build

# Experience a full turbo build
yarn run build

# Run dev on all apps
yarn run dev

# Run unit tests
yarn run test

# Clean build output
yarn run clean

# Rebuild without turbo cache
yarn rebuild

# Purge node_modules and build output
yarn run purge

# Build a single package and its dependencies
yarn run build --no-deps --scope=@oolio/<package>

FOSSA Status