Intro to Monorepos with NPM Workspaces Outro

Share this video with your friends

Social Share Links

Send Tweet
Published 2 years ago
Updated 2 years ago

Thank you for completing my course!

You’ve learned what monorepos are, how to create them from scratch, how to install different projects inside of it, and how to run different scripts inside of a monorepo.

So where do you go from here? I suggest creating your own Monorepo project template and publish it on Github. Take a look at Yarn Workspaces, pnpm, Learna, Nx and Turborepo for different monorepo tools.

I also highly suggest Migrating some of your existing projects to a monorepo. Have a main frontend application that consumes a shared UI library package and a backend service. Another way would be to have a backend service, a mobile application and a frontend application.

Best of luck and happy coding!

Instructor: [0:00] Hey, thanks for completing the course. We have learned what monorepos are, how to create a monorepo from scratch using npm workspaces. We also learn how to install different projects inside a monorepo.

[0:14] In this case, we used Next.js, we used Bit, and we used tsup, but you can use whatever you want. You can use Vue, you can use [inaudible], you can even create a mobile project using React Native. We also learned how to run different scripts in a monorepo. We took a look at how to create a script that takes care of the quality of a project, that runs the tests and the type checks for the project.

[0:41] Where you can go from here? A good way to learn about monorepos is create your own. I would suggest you to create a GitHub project and start doing things.

[0:53] For instance, you can take a look at the Next.js project if you need any inspiration. Once you have the project ready, you can create a GitHub template so you can use it in every project you want. I would recommend you to take a look at Yarn workspaces, pnpm, Lerna, Nx, and Turborepo, as those are all the ways to create monorepos in JavaScript.

[1:18] If you want to solidify your knowledge about monorepos, I would suggest you to migrate existing projects into a monorepo. One good example is to grab a front-end application that consumes a shared UI library package, move those projects into the monorepo, and go from there.

[1:36] Another good project to tackle is to move a back-end service, maybe a mobile application, and a front-end application into one single repository. I hope you have fun.