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

[FIX] Resolve UI5 data directory relative to project #642

Merged
merged 5 commits into from
Aug 18, 2023

Conversation

matz3
Copy link
Member

@matz3 matz3 commented Aug 16, 2023

The UI5 data directory (previously called UI5 home directory) should
always be resolved relative to the project directory, which is where
the package.json file is located at.

This change also adds a list of options to the Configuration class to be
used by the CLI config command to allow all available config options to
be set or retrieved.

Follow-up of #635

JIRA: CPOUI5FOUNDATION-715
JIRA: CPOUI5FOUNDATION-716

The UI5 data directory (previously called UI5 home directory) should
always be resolved relative to the project directory, which is where
the package.json file is located at.

This change also adds a list of options to the Configuration class to be
used by the CLI config command to allow all available config options to
be set or retrieved.

Follow-up of #635
@coveralls
Copy link

coveralls commented Aug 16, 2023

Coverage Status

coverage: 95.868% (+0.04%) from 95.832% when pulling 0d65ecb on fix-data-dir-resolution into 23fd49d on main.

@matz3 matz3 marked this pull request as ready for review August 17, 2023 12:29
@matz3 matz3 requested a review from a team August 17, 2023 12:29
@matz3 matz3 added the bug Something isn't working label Aug 17, 2023
matz3 added a commit to SAP/ui5-cli that referenced this pull request Aug 18, 2023
Options are now properly read from the @ui5/project Configuration class
in order to be decoupled from future changes.

Some code could be removed as the checks are done via yargs.

See: SAP/ui5-project#642
Copy link
Member

@RandomByte RandomByte left a comment

Choose a reason for hiding this comment

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

LGTM, just a minor proposal

test/lib/graph/helpers/ui5Framework.integration.js Outdated Show resolved Hide resolved
matz3 added a commit to SAP/ui5-tooling that referenced this pull request Aug 18, 2023
Co-authored-by: Merlin Beutlberger <m.beutlberger@sap.com>
@matz3 matz3 merged commit 228b14c into main Aug 18, 2023
@matz3 matz3 deleted the fix-data-dir-resolution branch August 18, 2023 14:39
matz3 added a commit to SAP/ui5-cli that referenced this pull request Aug 18, 2023
Options are now properly read from the @ui5/project Configuration class
in order to be decoupled from future changes.

Some code could be removed as the checks are done via yargs.

See: SAP/ui5-project#642
matz3 added a commit to SAP/ui5-cli that referenced this pull request Aug 19, 2023
Options are now properly read from the @ui5/project Configuration class
in order to be decoupled from future changes.

Some code could be removed as the checks are done via yargs.

See: SAP/ui5-project#642

JIRA: CPOUI5FOUNDATION-716

---------

Co-authored-by: Merlin Beutlberger <m.beutlberger@sap.com>
matz3 added a commit to SAP/ui5-tooling that referenced this pull request Aug 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants