Today I Learned - Rocky Kev

TIL Mono Repo best practices

POSTED ON:

TAGS:

In a monorepo, there's a lot of architectural decisions.

(A monorepo is a single repo that houses many projects. For example - Google, Facebook, Microsoft, Uber, Airbnb, and Twitter uses a monorepo, with varying strategies to manage it.)

One major decision:
Do you compile each repo and leave the dist?
Or do you have the user compiled it themselves?

Within a monorepo, the best use case in the former.

But for CodePen, they have a single build system that compiles everything so they don't have multiple webpack configs.

REFERENCE:
https://podcasts.google.com/feed/aHR0cHM6Ly9ibG9nLmNvZGVwZW4uaW8vZmVlZC9wb2RjYXN0/episode/aHR0cHM6Ly9ibG9nLmNvZGVwZW4uaW8vP3A9MTU1MjM?ep=14


Related TILs

Tagged:

TIL the core-js spam trolling

This entire repo is a hilarious rabbit-hole when you combine this with everyone complaining about the console spam that the dev added to it asking if anyone can find him a job. One of my favorite PRs

TIL How many Fucks there are in Linux

As of today, in the Linux Repo, there are comments that contains the following mentions: 1,651 for hacks, 2,863 for workarounds, and 4,102 for fixme

TIL reverting git

Two solutions. One is re-write history and hide your mistakes. The other is showing the history, to remind you of your mistakes.