Anyone use turborepo (<https://turborepo.org/>) ? ...
# help
e
Anyone use turborepo (https://turborepo.org/) ? I need to completely redo our GitLab build and since it’s a PITA I’ve been looking for other options. Current alternate plan is to try Seed with the lerna change detection (it’s a monorepo) - but a colleague pointed out this tool as maybe an alternative.
t
we are using turborepo for sst itself
but been a progressive move
The thing is turborepo is good for traditional projects esp open souorce libraries
but it won't help with functions builds in your sst app
e
Our project is pretty much classic serverless framework right now, with a react front end. A few shared packages hence the workspaces stuff I’ve been testing this week.
t
yeah I use it to parallelize things like typechecking
and running tests
e
Any opinion on whether it’s worth using with Seed - as the other option I’m considering? Could they work well together, or is it really an either/or?
t
I view turborepo as a good parallel task runner and it makes sense in almost any project
the extent you use it will vary
but it's definitely a default thing I add to all projects
e
OK, that definitely sounds like a recommendation!
e
@Edward Asquith Check Nx - https://nx.dev/. Has a first class support for app build using dependency pkg bundling (suitable for cloud functions etc) compared to app build using dependency pkg linking which is first class support in Turborepo & Lerna
t
Can you tell me more about dependency package bundling? Does this mean sub tasks in a given package?
e
Building an app (deployable package) with Nx (with the help of their plugins) bundles all sub workspace packages (uses webpack but there are esbuild plugins as well) in the app build. It also generates a package.json based on the combined package dependencies.
d
we use turborepo as well (~20 monorepos with 2-12 packages each), very rarely experience issues, but have on occasion. simple enough to setup as well.
e
Hey thanks for the Turbo recommendation @thdxr. You just helped reduce our build times by two thirds. 🥳