Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TypeScript + lerna + yarn monorepos FTW

paul souche
October 08, 2017

TypeScript + lerna + yarn monorepos FTW

paul souche

October 08, 2017
Tweet

More Decks by paul souche

Other Decks in Programming

Transcript

  1. Me, myself & I Paul Souche Front End developer @S_A_N_T_E_C_H

    In love with TypeScript since 2014 @paul.souche paulsouche @paulsouche 2
  2. Multi repos : why ? - Monoliths no more -

    Build only the necessary - Clearer subversion history - Easier revert - 1 app > 1 repo - 1 service > 1 repo... 3
  3. Multi repos : but ... - Switch project all the

    time - Sequential builds - Evergreen anti pattern - Dependencies - Versioning - Features branch 4
  4. Lerna << Lerna is a tool that optimizes the workflow

    around managing multi-package repositories with git and npm >> 8
  5. Yeah… But ? - devDependencies are the same so lerna

    bootstrap could be very slow for more packages (cache) - Build is sequential 13
  6. Build 18 - Several flags such as --parallel I won’t

    talk about - Bash is always the answer for uncommon problems