meta_pixel
Tapesearch Logo
Log in
Syntax - Tasty Web Development Treats

Hasty Treat - How to Setup a PNPM Monorepo

Syntax - Tasty Web Development Treats

Wes Bos

Tech News, News, Technology

4.9 • 1.2K Ratings

🗓️ 1 November 2021

⏱️ 23 minutes

🧾️ Download transcript

Summary

In this Hasty Treat, Scott and Wes talk about PNPM and monorepos! Freshbooks - Sponsor Get a 30 day free trial of Freshbooks at freshbooks.com/syntax and put SYNTAX in the “How did you hear about us?” section. LogRocket - Sponsor LogRocket lets you replay what users do on your site, helping you reproduce bugs and fix issues faster. It’s an exception tracker, a session re-player and a performance monitor. Get 14 days free at logrocket.com/syntax. Show Notes 4:40 - What is pnpm? https://pnpm.io/ Performant npm https://www.youtube.com/watch?v=hiTmX2dW84E Find and remove node modules find . -name "node_modules" -type d -prune -exec rm -rf '{}' + 08:30 - Why monorepo? Internal packages all in one place Forks and custom packages easier Commands that control everything at once 10:33 - Workspaces Not exclusive to pnpm Yarn, npm, pnpm all have them now Different syntax packages: - "packages/**" 12:48 - How it works in practice All commands run through root Use in host, hook up my monorepo to render run commands Filter and recursive "install:all": "pnpm recursive install", "clean": "pnpm recursive exec -- rm -rf node_modules; rm shrinkwrap.yaml; rm -rf node_modules", "ui:dev": "pnpm recursive run dev --filter @leveluptuts/ui", 16:35 - Using submodules https://paigeniedringhaus.substack.com/p/march-2021-git-submodules Why submodules? Public and private Links https://www.npmjs.com/package/npx https://yarnpkg.com/ Tweet us your tasty treats! Scott’s Instagram LevelUpTutorials Instagram Wes’ Instagram Wes’ Twitter Wes’ Facebook Scott’s Twitter Make sure to include @SyntaxFM in your tweets

Transcript

Click on a timestamp to play from that location

0:00.0

Monday Monday Monday open wide dev fans get ready to stuff your face with javascript CSS node module barbecue tips get work flows break dancing soft skills web development the hastiest the

0:13.5

Carrazius the tastiest web development treats coming in hot. Here is West

0:19.2

Barracuda boss and Scott L. Toro Lugo to Linsky

0:25.2

Oh, welcome to syntax in this Monday hasty treat. I'm going to be talking about P N P M and workspaces and

0:35.7

Mono repos and even get some modules and a little bit about about how we're doing a Mono repo using the following tech.

0:42.5

My name is Scott Linsky. I'm a full stack developer from Denver, Colorado, and with me as always is the

0:48.3

West the boss man boss. Hey, I'm excited to hear what the P N P M stands for. Is it performance? I think it's

0:56.8

performance, but same same difference. Yeah. Oh, that was a bit of a joke, but that was a good we are

1:04.7

sponsored today by two awesome companies, fresh books and log rocket. I'll tell you about fresh books. Let me

1:11.1

tell ya, fresh books is the cloud accounting solution for your small business. It helps you get paid

1:17.3

much faster than usual. Why does it help you get paid much faster than usual? Because you log in,

1:22.6

you can use it to track your hours. You can create an invoice. You send that off to your user or

1:28.5

your client. Your clients love it because they can pay by credit card on there or you can add notes

1:33.2

on sending them. I still get paid by checks a lot, which is funny to people outside of maybe even

1:39.1

outside of Canada. We still do a lot of checks here in Canada. You get them in the mail and you go

1:43.9

deposit them. You do the photo of the check, yeah. We just got the photo thing, which I love in our

1:49.2

scrap bank machines recently got like you just put the money and the checks in like in a hole

1:55.6

and not in an envelope and it like takes a picture of them. And no, it doesn't work very good.

2:01.4

Also because I just stuffed them in my pocket and then they're so crumbly. Anyways, back to

2:05.5

fresh books, fresh books. They send late payment invoice reminders to your client. So you don't

2:10.9

have to go to your clients. Hey, you didn't pay me for this. Fresh books will send that for you.

2:15.6

And it's a little less awkward that way. So if you have a small business, you're a freelancer.

...

Please login to see the full transcript.

Disclaimer: The podcast and artwork embedded on this page are from Wes Bos, and are the property of its owner and not affiliated with or endorsed by Tapesearch.

Generated transcripts are the property of Wes Bos and are distributed freely under the Fair Use doctrine. Transcripts generated by Tapesearch are not guaranteed to be accurate.

Copyright © Tapesearch 2026.