-
Notifications
You must be signed in to change notification settings - Fork 229
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
Globs support for defining packages in workspaces #4391
Comments
I think add globs in At-least I don't want it to block launching 🚀 |
Makes sense, I think we'll wait with putting up a migration from Melos to Melos + workspaces until this is done then. Because it will be quite a painful experience for all projects with more than a few packages. |
Yeah - I don't think this will make it for 3.6 . |
I just started migrating over monorepos now when Melos has support for pub workspaces. workspace:
- doc/flame/examples
- doc/tutorials/klondike/app
- doc/tutorials/space_shooter/app
- doc/tutorials/platformer/app
- packages/flame_behavior_tree
- packages/flame_behavior_tree/behavior_tree
- packages/flame_behavior_tree/example
- packages/flame_test
- packages/flame_test/example
- packages/flame_tiled
- packages/flame_tiled/example
- packages/flame_oxygen
- packages/flame_oxygen/example
- packages/flame_isolate
- packages/flame_isolate/example
- packages/flame_texturepacker
- packages/flame_texturepacker/example
- packages/flame_lint
- packages/flame_sprite_fusion
- packages/flame_sprite_fusion/example
- packages/flame_devtools
- packages/flame_fire_atlas
- packages/flame_fire_atlas/example
- packages/flame_audio
- packages/flame_audio/example
- packages/flame_studio
- packages/flame_spine
- packages/flame_spine/example
- packages/flame_splash_screen
- packages/flame_splash_screen/example
- packages/flame_bloc
- packages/flame_bloc/example
- packages/flame_kenney_xml
- packages/flame_kenney_xml/example
- packages/flame
- packages/flame/example
- packages/flame_lottie
- packages/flame_lottie/example
- packages/flame_markdown
- packages/flame_markdown/example
- packages/flame_console
- packages/flame_console/example
- packages/flame_rive
- packages/flame_rive/example
- packages/flame_forge2d
- packages/flame_forge2d/example
- packages/flame_noise
- packages/flame_riverpod
- packages/flame_riverpod/example
- packages/flame_svg
- packages/flame_svg/example
- packages/flame_network_assets
- packages/flame_network_assets/example
- packages/flame_3d
- packages/flame_3d/example
- packages/flame_jenny
- packages/flame_jenny/jenny
- examples/games/trex
- examples/games/padracing
- examples/games/rogue_shooter
- examples vs. what it would look like with globs: workspace:
- doc/**
- examples/**
- packages/** |
Thanks for the example. Yeah - this is on one hand much more compact - and I think we can make it work. But I still think having the explicit listing of packages has its benefits too. You can actually see the packages that are expected to be there... |
In I think the pros heavily outweigh the cons of having globs here, if the user wants to have all their packages explicitly listed they are still free to have it like that even after globs are introduced. The main pro we have seen with having globs in Melos is that without it people forget that they have to do the one extra step of manually adding the package to the list, and it then accidentally results in the package being excluded from the ci pipelines, package linking etc, which might not be obvious to see when it happens, until it breaks. People also tend to have structured monorepos, so if they add a new package somewhere in the file structure where they expect it to be included as a package in the monorepos it would automatically be covered by the glob, and vice versa for packages that shouldn't be added. |
I just realized |
I think this is already planned, but I'm opening an issue so that it can be tracked.
Adding globs support will:
melos.yaml
to the workspace config fileDesign doc discussion: https://docs.google.com/document/d/1UEEAGdWIgVf0X7o8WPQCPmL4LSzaGCfJTM0pURoDLfE/edit?resourcekey=0-c5CMaOoc_pg3ZwJKMAM0og&disco=AAAA9uS5yhA
The text was updated successfully, but these errors were encountered: