Skip to content
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

[FEATURE] Create designtime and support bundles for libraries #529

Merged
merged 3 commits into from
Oct 20, 2020

Conversation

codeworrior
Copy link
Member

When a bundle would be empty (not contain any modules), it will be skipped.

When a bundle would be empty (not contain any modules), it will be
skipped.
@coveralls
Copy link

coveralls commented Oct 11, 2020

Coverage Status

Coverage increased (+0.02%) to 92.819% when pulling b67c077 on designtime-and-support-bundles into e42c075 on master.

".view.json",
".view.xml",
".properties",
".json"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The general ".json" file type is NOT present in our Maven tooling. I've kept it nevertheless for compatibility with existing projects that use the ui5-tooling already.

return createLibraryBundles(libraryNamespace, resources)
.then((results) => {
const bundles = Array.prototype.concat.apply([], results);
return Promise.all(bundles.map((bundle) => bundle && workspace.write(bundle)));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to the new skipIfEmpty, some of the entries in the bundles array might be undefined.

@RandomByte
Copy link
Member

I like this

@matz3 matz3 merged commit 2a51943 into master Oct 20, 2020
@matz3 matz3 deleted the designtime-and-support-bundles branch October 20, 2020 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants