-
Notifications
You must be signed in to change notification settings - Fork 22
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
[FIX] moduleBundler: Apply defaultFileTypes #580
Conversation
40dfdd3
to
759a4ae
Compare
Use default if not provided in bundle definition. In the past neither a default, nor the bundle definition configuration was used, since the parameter was mistakenly expected on the bundle options. Also align the defaults for library- and component-bundles with Maven.
759a4ae
to
b86029f
Compare
Paging @codeworrior: Should EDIT: Based on this comment I understand that flex changes must be part of the
|
@@ -85,12 +85,25 @@ module.exports = function({ | |||
allNamespaces.forEach((ns) => { | |||
if (ns !== namespace && ns.startsWith(`${namespace}/`)) { | |||
filters.push(`!${ns}/`); | |||
// Explicitly exclude manifest.json files of subcomponents since the general exclude above this | |||
// comment only applies to the configured default file types, which do not include ".json" | |||
filters.push(`!${ns}/**/manifest.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.
Not sure whether this is our intention. But I guess it's a good solution for the time being.
The exclude-regex generated by ResourceFilterList always applies the default file types and therefore won't exclude manifest.json
:
// !library/h/components/subcomponent3/ --> exclude:
/^library\/h\/components\/subcomponent3\/(?:[^/]+\/)*[^/]*(?:\.js|\.control\.xml|\.fragment\.html|\.fragment\.json|\.fragment\.xml|\.view\.html|\.view\.json|\.view\.xml|\.properties)$/
…tandalone-app-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.
LGTM
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.
LGTM
Use default if not provided in bundle definition.
In the past neither a default, nor the bundle definition configuration
was used, since the parameter was mistakenly expected on the bundle
options.
Also align the defaults for library- and component-bundles with Maven.
New moduleBundler defaults:
.js
.control.xml
.fragment.html
.fragment.json
.fragment.xml
.view.html
.view.json
.view.xm
Component-bundles (Component-preload.js and sap-ui-custom.js) additionally include:
.properties
${namespace}/**/manifest.json
${namespace}/changes/flexibility-bundle.json
${namespace}/changes/changes-bundle.json