-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat: allow bundle to take multiple inputs to take advantage of bash's wildcard #483
base: master
Are you sure you want to change the base?
Conversation
@luanpotter I took a closer look at the changes and I'm a bit uncertain about merging these changes because the approach doesn't appear to work well in cases where you want to bundle multiple bricks from different sources. For example, how would you be able to bundle multiple bricks from git urls? I'd love to align on an API that supports bundling from multiple sources (e.g. bundling multiple bricks from git, path, and registry sources). Let me know what you think and thanks again for the PR 👍 |
hi @felangel, thanks for the response. it does allows for multiple bricks of any source, but only one source at a time. So you can bundle multiple bricks from git url, as long as they are all git. |
Thanks for the quick response! How would the current API work with bundling multiple bricks from git? |
Sorry for the delay, had a busy end of the week! mason bundle --source git url1 url2 ... if you want, I can add a test case specifically for this case. however, after looking deeper on how the "git" source works, I think I know what you might have been talking about -- you will need to provide the same |
The case I was thinking of is adding multiple git sources from different git-url, git-path, and git-refs. Ideally if we support multiple sources we should truly support any combination of multiple sources and not restrict it to just multiple sources from the same git-path and git-ref. Let me know what you think and thanks again! |
What would you think of incorporating all that information into the url? |
…gel#483) Bumps [@docusaurus/module-type-aliases](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-module-type-aliases) from 2.2.0 to 2.3.0. - [Release notes](https://github.com/facebook/docusaurus/releases) - [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/docusaurus/commits/v2.3.0/packages/docusaurus-module-type-aliases) --- updated-dependencies: - dependency-name: "@docusaurus/module-type-aliases" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Status
READY FOR REVIEW
Description
Right now, if you provide more than one file for
mason bundle
, it will only look at the first file. That is because the implementation is only considering the.first
element of therest
array, instead of all.That means that you can't leverage the wildcard operator in bash; for example:
mason bundle bricks/* -t dart -o lib/templates/bricks/
Will only generate the first bundle:
That makes it hard to automate build scripts, as it would require an actual bash script for loop to bundle all files.
Type of Change