3
Watch
41
Star
4
Fork
2
Issue

A git repo template for setting up TypeScript Monorepos

paularmstrong
paularmstrong
pushedAt 3 months ago

paularmstrong/monorepo-ts

TS Monorepo

This is a git repo template for setting up your own project as a Monorepo using Typescript, Yarn, Lerna, and Jest.

Getting started

Click Use this template to initialize a new repository on Github.

Pre-configured

  • Typescript
  • Lerna
  • Jest
  • Eslint
  • Git hooks
    • post-checkout: on branch change, attempts to install third-party modules
    • post-merge: attempts to install third-party modules
    • post-rebase: attempts to install third-party modules
    • pre-commit: runs Typescript, and lint-staged
      • lints changed files
      • runs related tests for changed file

Commands

build

Builds all packages in parallel

clean

Cleans up all build files for all packages

ci

Shortcut command to run CI-friendly conformance checks for lint, typescript checks, and tests.

lint

Runs lint and auto-fixes code if necessary.

test

Runs all tests.

Shortcut for jest. You can pass any jest CLI flags to this command like --watch

tsc

Runs a noEmit Typescript check across all files.

ucloud ads