-
Notifications
You must be signed in to change notification settings - Fork 212
Specifying global build.yaml for all projects in monorepo #3406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
build.yaml files are also read when building other packages that depend on a given package, so I don't really see this working out well in the long term (the use case would be very narrow, and then it would be very confusing that your package behaves differently if depended on). I would suggest that possibly |
@davidmorgan, please let me know if I'm being annoying, but since you've asked me to underline more build runner issues, here I go 😄 This is one of the most important to me. Dart now supports mono repos. I love them. I think the builder must be monorepo-aware to solve that. It should be "canon" (aka expected and documentated), and it should account for optimizations in that regard. Thus, I'm not sure the above reply is relevant anymore. Melos should be considered a thing of the past. Notice how mono repo support for build runner has been asked a multitude of times in this repository, and - as of now - they're all being closed as "not planned". |
Thanks @lucavenir, your input is much appreciated :) let me add this to the pile of things I plan to look at. I'm not sure I fully understand what's being asked for, though; could you maybe give an example of |
I assume one use-case would be Freezed config. It has a bunch of default values configured in the So the idea would be to share those configs across all packages within a workspace |
Surely the configuration can be workspace-wide, as @rroussellGit showed. This is a "nice to have", for me. It means I avoid configuration duplication across the mono repo. Noice. But the point is build optimizations AFAIK. I think the builder might be aware of these to begin with, and skip as much work as it can. To give you a better perspective: now I have a This gives some performance penalties, obviously. For example, adding a Output (right after the new class is being saved to disk):
Here, My request would be to let |
Hmm, yes, running for each package separately is doing a lot of duplicate work. It would be interesting to reduce that somehow. That's a lot more complicated than just saving copying the Thanks. |
I can only imagine the complexity you're going through, so thank you for listening 🙏🏼 Should this stay open? |
It's all good, I'm enjoying it ;) Yes, this is a good issue to have open. Thanks for drawing my attention to it. |
2.18.2 (stable)
build_runner 2.2.0
Hi there,
I wonder whether would be possible specifying a full path to the
build.yaml
file in thebuild
command ofbuild_runner
. I would love to only maintain one globalbuild.yaml
file for all the project in our monorepo. Being able to specify a full route in the root of the repo and the usage of a monorepo manager such asmelos
would made it possible.The text was updated successfully, but these errors were encountered: