Turborepo Demo and Walkthrough (High-Performance Monorepos)

Поділитися
Вставка
  • Опубліковано 25 гру 2024

КОМЕНТАРІ • 89

  • @muhammadmejanulhaque3305
    @muhammadmejanulhaque3305 2 роки тому +11

    loved the stream. Somehow I feel proud to be a developer looking at you guys.

  • @sahilaujla
    @sahilaujla 3 роки тому +8

    This is awesome!
    Vercel always try to provide best developer experience.

    • @RahulinWeb3
      @RahulinWeb3 Рік тому +1

      bhai tu ek saal pehle yeh dekh raha tha. 😅

    • @sahilaujla
      @sahilaujla Рік тому +1

      @@RahulinWeb3 Haha! Yeah bro

  • @GabrielLopesbiutas
    @GabrielLopesbiutas 3 роки тому +12

    Remote caching is about to change Vercel costs with cloud, because if you ran the build locally with remote cache, the vercel infra just have to download the cache and deploy, instead of paying for a Lambda to build the entire app. That is 🤯🤯🤯, congrats Turbo and Vercel.

  • @Xiel89
    @Xiel89 2 роки тому +2

    Very straightforward idea, brilliantly executed! And you are just getting started, so awesome!

  • @nicolaslair4498
    @nicolaslair4498 2 роки тому +1

    Super exciting stuff, can't wait to try it out!

  • @jesusmgw
    @jesusmgw 3 місяці тому

    Getting those sub 30 second build times is massive for iteration time. Blazing fast.

  • @LkRuiZ
    @LkRuiZ 3 роки тому +5

    First of all, great presentation, I liked it. However, TBH, I've been working for ~3 years with Nx and I did not see anything new, instead I see Turbo as a little child compared to Nx. I wish you the best and I hope you bring more features to the table, you have a big guy to beat.

    • @liftingisfun2350
      @liftingisfun2350 3 роки тому

      They have a strong team but I also agree and hope they put the effort in to add value

    • @phil-l-tech
      @phil-l-tech 3 роки тому

      I have a mono repo with 25 packages, lerna and yarn v1, it’s good, what would be better with nx?

    • @LkRuiZ
      @LkRuiZ 3 роки тому +2

      Well, if you structure your project very well the advantages are many, you build only what's affected, you can add tags for scoping each project, also you get computational caching, you can integrate other projects apart from TS/JS. Definitely you should try it out

  • @scottamolinari
    @scottamolinari 2 роки тому +1

    I agree, sort of, with Nx's plugin concepts and it causing "friction". I think it is a hurdle to getting started for sure. At least it was for me. And so hats off to wanting to make it easy to start with Turborepo. The only thing that seems new is the remote caching. Very interesting. I'll be keeping an eye on Turbo repo (we are using Rush currently and are happy).

  • @vsquarevision2987
    @vsquarevision2987 3 роки тому +28

    This is great, I have one question regarding ENV variables.
    So, some of the build systems actually replaces the ENV vars with it's actually literal values in the build output, so If I build the project locally and turbo uploads the cache.
    What happens when we build on production where the ENV variables are different ?

  • @api-first
    @api-first 3 роки тому +10

    This was awesome. Really excited to try it. My only feedback is, that the whole presentations felt a little unstructured (maybe Jared was just super excited to show ALL the features). I'd also would have loved to see how to run deployments with Turborepo & Vercel. Thanks for putting this out!

  • @tsooooooo
    @tsooooooo Рік тому +1

    Very cool. I think the end game of this approach is being explored by the folks working on the Unison language (the granularity goes down to the language/expression level) - but they should make it work for all languages. Also you made some good decisions about 'getting out of the way', which is nice compared to NX.

  • @ilmioiosottoilletto
    @ilmioiosottoilletto 3 роки тому +10

    The only think that i dont like about next.js and monorepo architecture is that you need yo use third parties transpilers, such next-transpile-modules, for share components between apps. You cannot freely update next version if the library does not already support that version, and what if the third party library goes unmaintained? imho a native way to share components between apps would be awesome.

  • @Cassp0nk
    @Cassp0nk 3 роки тому +7

    How does this compare to nxjs which has a bunch of caching stuff to keep it fast?

  • @hakanaki
    @hakanaki 3 роки тому +7

    I've been playing around with turborepo, and I'll say, its a great time saver. Another question 😊, turborepo come with few commands, build, dev, lint, format, how do I run start in production for a specific app in production when I have multiple apps?

    • @wesleyjanse6600
      @wesleyjanse6600 3 роки тому +1

      Also something I would like to know! :D

    • @hakanaki
      @hakanaki 3 роки тому +1

      @@wesleyjanse6600 from my experience, you can change the start command to cd in to the app you want to run start command on, and mom start for Ex. cd web && npm start

    • @wesleyjanse6600
      @wesleyjanse6600 3 роки тому +1

      @@hakanaki Alright, so you would build the entire monorepo, then just only start the needed app. and you could I guess also dockerize this on build to remove the not needed apps?

    • @hakanaki
      @hakanaki 3 роки тому +1

      @@wesleyjanse6600 correct me if I'm wrong, but on the video they mentioned that it won't build what it doesn't need to build. Running build the first time will build everything, but on the second build, it only have to what has been changed.
      You can also control what app to start from config files, such as heroku, netlify, travis, circle ci config files

  • @notrab
    @notrab 2 роки тому

    Pretty cool!

  • @f22hd
    @f22hd 2 роки тому +2

    Local & Remote cache is awesome, most of the features crossing with nx, what is the main feature of turborepo that beat other competitors?

  •  3 роки тому

    Awesome!!

  • @dr.mohamedmusthafa3674
    @dr.mohamedmusthafa3674 3 роки тому +6

    NX or Turborepo for Next.js?

    • @Spectraevil
      @Spectraevil 3 роки тому +2

      Nx ofcourse. Turbo is very new at the moment and Nx provides way too many awesome functionalities. Turbo right now is a minor subset of Nx

  • @tehalon1
    @tehalon1 3 роки тому +14

    Seems scary to share a cache with everybody on the team and CI. If one developer gets hacked, couldn't an attacker infect every other developer (by changing the build output of the express server for example)? Also, couldn't an attacker manipulate a release artifact this way without anybody noticing?
    Edit: At 36:19 they discuss security.

    • @liftingisfun2350
      @liftingisfun2350 3 роки тому +8

      I'm not sure that he did a great job with the explanation and I think you're concerns are valid

  • @eddyhernandez2475
    @eddyhernandez2475 3 роки тому

    Where can I find the "turborepo-starter" code from 13:40?

  • @jatasya8948
    @jatasya8948 3 роки тому

    Awesome

  • @MinhajulIslam-h8s
    @MinhajulIslam-h8s 16 днів тому

    In our Expo app, we had to patch a dependency, but now that we’ve set up TurboRepo with the Expo app, the patch is no longer working.

  • @mlnima
    @mlnima 2 роки тому +1

    Would you please put some repo url in the description? I am almost sure 87.6% of the people using this and watching this video needs it

  • @potkastiin8362
    @potkastiin8362 2 роки тому

    Turborepo 😆🤣🤣Super cool name.

  • @leo11877
    @leo11877 Рік тому

    So TurboRepo only works with JS repos right? No .NET core?

  • @milon27
    @milon27 Рік тому

    can use it in react native cli project and react vite app with typescript?

  • @wesleyjanse6600
    @wesleyjanse6600 3 роки тому +1

    So let's say, I have multiple webshops that need to look and feel the same, and use the same components. But need to be deployed and build separately. Is that something that can be done using turborepo?

  • @kierrereeg
    @kierrereeg 2 роки тому +5

    It would be awesome if there were more resources to really understand how to structure turbo repo projects, if you are new to it there are very few videos that explain the basics. I have read through the docs and watched all the videos but for some reason I’m not grasping it well.

    • @macktheknife2037
      @macktheknife2037 8 місяців тому

      Same here. A bit more simplification would be great. Having problems running it with PNPM and its hard to find out why or how to structure it so it works.

  • @gunslingorgunslingorsadf8150
    @gunslingorgunslingorsadf8150 2 місяці тому

    what if I want to use vite or react or something other than next.js
    I would want apps/[api-express & native & vite & shared]... can turbo repo do this, is it library agnostic/workspace or no? Will it integrate with vercel... really that's my problem, getting a monorepo to work with vercel has proven more challenging that gcloud =(.

    • @gunslingorgunslingorsadf8150
      @gunslingorgunslingorsadf8150 2 місяці тому

      They seemed to cover only a single build configuration of a build tool? Seems very limited... only a few templates? what is the command to create the app I want?

  • @johnnftmall9516
    @johnnftmall9516 3 роки тому +2

    What does VERCEL mean btw?

  • @johnnftmall9516
    @johnnftmall9516 3 роки тому +3

    What's the difference between Turborepo and NX ?

    • @GabrielLopesbiutas
      @GabrielLopesbiutas 3 роки тому +1

      I think that Turbo is more transparent, NX have more features, but it's more complex to use and configure. It's like ride a bike with no training wheels.

    • @jofla
      @jofla 3 роки тому

      @@GabrielLopesbiutas I think....

  • @henrikostman4474
    @henrikostman4474 2 роки тому

    How do I run remote cache on -prem? I'm not allowed to upload our whole codebase to the cloud.

  • @patrykmakowski5362
    @patrykmakowski5362 2 роки тому

    What VSC theme is it? I need it!

  • @eparizzi
    @eparizzi 3 роки тому +1

    I'd like to see Turborepo integrated into a NestJS monorepo. How to make both play together nicely?

    • @krishgarg2806
      @krishgarg2806 2 роки тому

      I think the tasks mainly depends on the package.json's scripts. Like turbo build will lookup build script in all apps.

  • @hankonline
    @hankonline 2 роки тому

    the same code ,build time used 39.716s, why?

  • @technikhil314
    @technikhil314 3 роки тому

    Vercel is awesome. Thanks @Vercel

  • @georgekrax
    @georgekrax 3 роки тому

    Which platform did you use for this online meeting? It has a nice user interface 😲

  • @hakanaki
    @hakanaki 3 роки тому +1

    Can you use this with plane react without next?

    • @VercelHQ
      @VercelHQ  3 роки тому +6

      Yes! Turborepo works with any frontend framework, shared configs, or other packages like component libraries.

    • @hakanaki
      @hakanaki 3 роки тому

      ​@@VercelHQ Okay, Thank you

  • @derhuzz
    @derhuzz 3 роки тому

    does someone know if i can add a react project inside the app directory ? I need to have a separate react app as well as a next js app inside the app folder and both will have a common ui package that they talk to

  • @ethanneff9817
    @ethanneff9817 3 роки тому +1

    Presenting from a WeWork?

  • @nicolasprt
    @nicolasprt 2 роки тому

    🤯

  • @AlirezaMotevallian
    @AlirezaMotevallian 3 роки тому +1

    Overall very cool, though obe thing I think is the weak dedign is the approach to pipelines.
    It reminds me of Maven vs. gradle and also TeamCity vs. Jenkins Pipelines. From my experience it backwards rrasoning of what needs to be done before something else is NOT intuitive and makes a lot of confusion.
    Jared should have looked at those I mentioned, TeamCity has similar approach and was always confusing.
    When we moved to Jenkins pipeline, a procedural approach was way way easier to reason for us as devs, as it is the normal approach (algorithms) we use to reason in our codes in a daily basis

  • @CsabaKissColorado
    @CsabaKissColorado Рік тому

    I can image Nrwl/Nx engineers screaming at the screen every couple of minutes: "We did that years ago."

  • @jofla
    @jofla 3 роки тому

    yeah lage is pretty good

  • @deamorta6117
    @deamorta6117 3 роки тому +2

    i see vitejs i press like

  • @technikhil314
    @technikhil314 3 роки тому

    Damn remote caching sounds dope. What a idea to share artifacts across developers but how will it work for platform specific artifact outputs

    • @deamorta6117
      @deamorta6117 3 роки тому

      hi im a beginner what does an artifact means?

    • @technikhil314
      @technikhil314 3 роки тому +1

      @@deamorta6117 it simply means output of build it can be a exe file, image screen shot, test results.

    • @deamorta6117
      @deamorta6117 3 роки тому +1

      @@technikhil314 ohhh yeah ive been seeing this term everywhere but does not know what it means. THAAAANKS

  • @kierrereeg
    @kierrereeg 2 роки тому

    Also, look, turborepo doesn't appear to work as the docs say, idk i may be a dumb, idiot, dunce, like really stupid, but the fact is i have done EXACTLY what the docs say (as i perceive them) and I'm lost in a deep deep dark hole of dispair.........maybe show like 7 different examples of how to integrate it into a project quickly and just leave the warts on the videos. We don't need or WANT perfect videos, we want to see how you stumble into the right thing.
    Please, and thank you very much, we really appreciate all you do!
    @Turborepo guy Jared or whatever your name is, look great you have created the greatest monorepo thing in existence EVER in all the history of MANKIND, now its time to SHOW PEOPLE HOW IT WORKS, this means simply do ONE thing, make about 25 or 30 videos showing how to work with it, stumble around in front of us, fail in front of us, WE WILL ALL FAIL LEFT AND RIGHT
    if you want us to use it GREAT, SO DO WE
    HELP US understand by showing us VIA video
    just do it 50x in different ways, just get on a video and show us how to work your sh## stuff

  • @jafar1607
    @jafar1607 3 роки тому +2

    None seem to have come across something called nx. Or victor savkin or anything remotely to do with angular framework. Lol

  • @nepalcodetv6298
    @nepalcodetv6298 3 роки тому +4

    NX was pissing me off with config, this looks great alternative

    • @AgentEndercake
      @AgentEndercake 3 роки тому +3

      I'm sorry to hear that Nx's config was aggravating for you, do you have examples of the pain points you encountered?
      For transparency I'm a core contributor on the team and have been heavily involved with recent improvements to Nx's config. Starting in 13.3 which released yesterday only 1 file is mandatory (nx.json)

    • @nepalcodetv6298
      @nepalcodetv6298 3 роки тому +1

      @@AgentEndercake yes yesterday was hellish for my team we suffered a lot due to cli bug doesn't build projects parallel stopped working we needed to downgrade cli to 12.7.0 and what the hell "nx format" this even caused another whole level of shit...any after wasting fixing downgrading resolved thanks

    • @effinrich
      @effinrich 3 роки тому

      @@AgentEndercake Really? Man, that's killer news. I'm on my 3rd Nx project, been using and promoting Nx for various teams I join. I love it when onboarding and/or training up a new team, it has so much great tooling. However, recently I've had a ton of issues with Nx not recognizing importPaths and instead requiring very long relative paths. The importPath actually works once compiled, but if I don't use the relative path Storybook, Jest and CI fail I tried a fresh build to test that issue isolated and had the same result. Extremely frustrating as well as testing errors for files that were long deleted or for file that exist, but Nx believes them to be missing. I'm going to try 13.3 immediately.
      So glad I dropped in here, knew someone would try to compare these 2 and it paid off. Thanks!

    • @AgentEndercake
      @AgentEndercake 3 роки тому

      @@effinrich The relative paths should definitely not be required, it sounds like there is a misconfiguation w/ your tsconfig or potentially a custom webpack config going on. I don't have a ton of context in that area, but feel free to open an issue and someone can help out.

    • @wsh4and
      @wsh4and 3 роки тому

      Same, can't figure out how to build a prod app of a nestjs app because the ENV keeps undefined after the build. So frustating

  • @m1dway
    @m1dway 3 роки тому

    wow, visual studio sln for front end...

  • @rileydavidjesus
    @rileydavidjesus 3 роки тому +3

    Is this an NX ripoff?

    • @threehams
      @threehams 3 роки тому +5

      Both Turborepo and NX are meant to be more accessible versions of the extremely complicated Bazel and Gradle.

    • @uwuLegacy
      @uwuLegacy 3 роки тому +3

      See it as competition, not as a copy

  • @akauppi2
    @akauppi2 3 роки тому +2

    A solution to a problem I don’t have. Using ESM for everything = 0 ms.

  • @BinaryReader
    @BinaryReader 3 роки тому

    Lol, nope, if turborepo has built their build automation around yarn and npm workspaces. They're already behind the curve. I know people think npm workspaces are the way to do monorepos, but what if i told you you could do everything turborepo does, without workspaces, symlinks and achieve sub second build times?