-
Notifications
You must be signed in to change notification settings - Fork 23
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
Conversation
When a bundle would be empty (not contain any modules), it will be skipped.
".view.json", | ||
".view.xml", | ||
".properties", | ||
".json" |
There was a problem hiding this comment.
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))); |
There was a problem hiding this comment.
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
.
I like this |
When a bundle would be empty (not contain any modules), it will be skipped.