Nx Monorepo Different Types and Understanding different Workspaces (yarn, pnpm and npm) #04

This video is a part of "Nx Monorepo for Microservices"
https://www.youtube.com/watch?v=NtdGXeiP9mE&list=PLT5Jhb7lgSBPTzeblwMiC5XIqhzfbvztT Nx is a smart, fast and extensible build system with first-class monorepo support and powerful integrations.

00:00 Nx mono repo Types
01:00 difference between standalone, integrated and package based monorepo
04:00 looking into docs for monorepo types
06:00 looking into workspaces
07:04 npm workspaces inside packages/*
08:55 what is a workspace and looking into demo
10:00 npm workspaces demo
13:00 hoisting of dependencies npm workspace
14:00 managing dependencies in npm workspace
16:50 npm workspaces commands
17:40 looking into pnpm workspaces
18:40 command in all different workspaces pnpm, npm and yarn
21:00 pnpm workspace demo
23:00 pnpm workspace command filter and run script
25:00 adding dependencies of package into another package


New Package-Based Repo
Create a monorepo with Yarn, NPM or PNPM. Nx makes it fast, but lets you run things your way.
New Integrated Repo
Get a pre-configured setup. Nx configures your favorite frameworks and lets you focus on shipping features.
Create a Standalone React app
A modern React setup with built-in support for Vite, ESLint, Cypress and more. Think CRA but modern, always up-to-date and scalable.

Nx is a Typescript based monorepo tool, primarily supporting Node.js based frontend, backend apps, and libraries. The topics we are covering today:

Why monorepo?
what is monorepo and how it helps
Nx: A monorepo tool
looking into all options npx create-nx-workspace
Create Nx workspace for a project
Build, lint, test, serve and run
using nx console using vscode
Single package.json policy
Affected apps by dep-graph and git diff
Computation caching and Nx Cloud
Building nx monorepo standalone app
Building nx monorepo packages based app
Building nx monorepo integrated app
Understanding workspaces like yarn, npm, pnpm
difference between all these different approaches


🐦 Twitter: https://twitter.com/tkssharma
🐦 Github: https://github.com/tkssharma
🐦 Website: https://tkssharma.com
🐦 Blogs: https://blog.tkssharma.com

I’m Tarun, I am Publisher, Trainer Developer, working on Enterprise and open source Technologies JavaScript frameworks (React Angular, sveltekit, nextjs), I work with client-side and server-side javascript programming which includes node js or any other frameworks Currently working with JavaScript framework React & Node js 🚀 with Graphql 🎉 developer publications.

I am a passionate Javascript developer writing end-to-end applications using javascript using React, Angular 🅰️, and Vue JS with Node JS, I publish video tutorials and write about everything I know. I aim to create a beautiful corner of the web free of ads, sponsored posts,

Comments