-
Notifications
You must be signed in to change notification settings - Fork 14
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] ProjectBuilder: Add outputStyle
option to request flat build output
#624
Conversation
4a8f2f0
to
879f464
Compare
879f464
to
047307c
Compare
New option 'flatOutput'. If set to true, libraries and theme-libraries will omit the "/resources/<namespace>" directory structure in the build output.
047307c
to
eaa70e6
Compare
We should request a review from @KlattG once the texts are updated |
Co-authored-by: Merlin Beutlberger <[email protected]>
Co-authored-by: Merlin Beutlberger <[email protected]>
Co-authored-by: Merlin Beutlberger <[email protected]>
Co-authored-by: Merlin Beutlberger <[email protected]>
Co-authored-by: Merlin Beutlberger <[email protected]>
Co-authored-by: Merlin Beutlberger <[email protected]>
* @property {string} Default Default directory structure for every project type. | ||
* For applications this is identical to "Flat" and for libraries to "Namespace". | ||
* Other types have a more distinct default output style. | ||
* @property {string} Flat Omits the project namespace and the "resources" directory. |
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.
These string variable names are in uppercase - do we have any guidelines which case to use?
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.
It's the same as the following module we already have: https://github.com/SAP/ui5-project/blob/main/lib/ui5Framework/maven/CacheMode.js
Basically, those are enums and they are expected to start with a capital letter. It's actually a workaround we use as JavaScript does not have native Enum type.
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.
Ack
Co-authored-by: Günter Klatt <[email protected]>
New CLI `build` option `--output-style`. Whether to omit the /resources/\<namespace\> directory structure in the build output. Resolves SAP/ui5-tooling#507 Depends on: SAP/ui5-project#624
LGTM |
Maybe adjust the PR title to mention the new |
outputStyle
option to request flat build output
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
* @property {string} Default Default directory structure for every project type. | ||
* For applications this is identical to "Flat" and for libraries to "Namespace". | ||
* Other types have a more distinct default output style. | ||
* @property {string} Flat Omits the project namespace and the "resources" directory. |
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.
Ack
Adds a section which describes the Build Output Styles feature and usage variants. Depends on: - SAP/ui5-project#624 - SAP/ui5-cli#665 --------- Co-authored-by: Günter Klatt <[email protected]>
New option
outputStyle
. Whether to omit the/resources/<namespace>
directory structure in the build output.Resolves SAP/ui5-tooling#507