Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.59 KB

GUIDEBOOK.md

File metadata and controls

51 lines (36 loc) · 1.59 KB

Template Monorepo

This is a template repo in GitHub for creating a fresh monorepo for managing code and documentation.

For more details on this setup, refer to this blog post here: https://matthamlin.me/2024/february/library-docs-monorepo-template

Getting Started:

Tasks:

Since this is a turborepo monorepo, you can run some tasks across the repo with ease by using the configured "tasks" from the root package.json and turbo.json files. Currently the below tasks are supported:

  • build
  • type-check
  • lint
  • test

Root only tasks:

  • one-version:check
    • Check if all dependencies are using the same version
  • knip
    • Run Knip across the repo
  • format
    • Run Biome formatter across the codebase
  • format:check
    • Check formatting across the codebase

Creating new workspaces:

This template has a minimal generator for creating new libraries and applications, both of which are defined by the template-library and template-app workspaces respectively. To create a new workspace, run the following command:

bun run generate --name <name> --type <package|app>

This will create either:

  • A new library within packages/<name> based on packages/template-library
  • A new application within apps/<name> based on apps/template-app

Tools: