Slide 1

Slide 1 text

The Age of Monorepos Miroslav Jonas / @meeroslav agent.sh / monorepo.tools / nx.dev / nrwl.io

Slide 2

Slide 2 text

Miroslav Jonas engineer at @meeroslav

Slide 3

Slide 3 text

Mono- what?

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

Static Web (pre JS era)

Slide 6

Slide 6 text

No content

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

successfully confusing recruiters since 1995

Slide 9

Slide 9 text

Age of Scripting

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Age of jQuery

Slide 12

Slide 12 text

Age of SPAs

Slide 13

Slide 13 text

Age of JAMStack

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

Age of Monorepos

Slide 16

Slide 16 text

Homepage App (framework X) Backend Every application* UI Components / Design system Service 1 Service 1 Service 1 Service 1 Service 1 Service 1 Service 1 Admin Portal App Mobile App Utility

Slide 17

Slide 17 text

Main library Website / Docs Every open source* Demo 1 Example 2 Showcase 3

Slide 18

Slide 18 text

Homepage App (framework X) Backend Collocate UI Components / Design system Service 1 Service 1 Service 1 Service 1 Service 1 Service 1 Service 1 Admin Portal App Mobile App Utility

Slide 19

Slide 19 text

Code sharing

Slide 20

Slide 20 text

Just collocation NOT

Slide 21

Slide 21 text

Speed matters

Slide 22

Slide 22 text

Rule 2: Find affected graph store games sales coupons core shared admin

Slide 23

Slide 23 text

Workspace analysis

Slide 24

Slide 24 text

Task orchestration Test Build Lint Build Lint Test Build Lint Test

Slide 25

Slide 25 text

*A tool for managing JavaScript projects with multiple packages.

Slide 26

Slide 26 text

Modern monorepo tools

Slide 27

Slide 27 text

No content

Slide 28

Slide 28 text

Caching Never { build, test, lint… } same code twice { build, test, lint,... } Nx Local cache { build, test, lint,... } Nx Local cache

Slide 29

Slide 29 text

Distributed task execution 10 tasks 110 tasks 100 tasks 150 tasks 10 tasks 105 tasks 5 tasks 60 tasks 35 tasks Agent 1 Agent 2 Agent 3 Agent 4 Agent 5

Slide 30

Slide 30 text

Code constraints

Slide 31

Slide 31 text

Code constraints store games sales coupons core shared admin

Slide 32

Slide 32 text

But I have only one project…

Slide 33

Slide 33 text

Consistent tooling

Slide 34

Slide 34 text

Powerful generators

Slide 35

Slide 35 text

Monorepos bring clarity - workspace analysis - graph visualization

Slide 36

Slide 36 text

- local & remote caching - task orchestration - detecting affected nodes - distributed task execution - remote execution Monorepos bring speed

Slide 37

Slide 37 text

- code sharing - code collocation - powerful generators - consistent tooling - code constraints Monorepos make it easy

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

nx.dev / nrwl.io Use

Slide 40

Slide 40 text

Thank you! Miroslav Jonas / @meeroslav agent.sh / monorepo.tools / nx.dev / nrwl.io