Are there any JS or Typescript projects out there ...
# general
e
Are there any JS or Typescript projects out there that work as an example of how the monorepo workspaces work with pants? I'm hoping to find something with a little more detail than the https://github.com/pantsbuild/example-javascript just to help my understanding a bit more.
n
I was thinking the other day that some more extended examples would be helpful. My understanding, from looking at the codebase again recently, is that a single workspace maps to a resolve. So you could have multiple workspaces for different resolves, each having a root package.json with child packages in subdirectories.
w
One thing I’ve always wanted is like, some sort of multi-language monorepo example - I think JS/TS would be a great frontend, and then some sort of micro-service-esque contrived backend across some other languages - all built and run in docker (or something like this)
e
@wide-midnight-78598 Yeah that would be great to have. My current work repo is basically 2 backend applications (each with a number of (python) docker containers), plus a helm chart for each. We also have a frontend for one of those applications, but its not really in pants (well, I made a
files(src="**/*")
so I could put the frontend dockerfile into pants, but the TS is not really in pants). Currently I'm trying to figure out how to put my frontend into pants as well, and to do it right so that we can invite other teams at my org to join the monorepo for any new services etc. (so I want to get the workspaces thing right)
I would love to have a "large" monorepo example, and wouldn't mind contributing a bit if I can understand how to do TS.
259 Views