Skip to content

[FEATURE] TaskUtil: Enhance interface provided to custom tasks defining specVersion 3.0 and later#514

Merged
RandomByte merged 8 commits intomainfrom
taskUtil-v3
Nov 24, 2022
Merged

[FEATURE] TaskUtil: Enhance interface provided to custom tasks defining specVersion 3.0 and later#514
RandomByte merged 8 commits intomainfrom
taskUtil-v3

Conversation

@RandomByte
Copy link
Member

@RandomByte RandomByte commented Nov 17, 2022

New API is only available to custom tasks defining specVerson 3.0 and
later.

JIRA: CPOUI5FOUNDATION-568

New API is only available to custom tasks defining specVerson 3.0 and
later.
@RandomByte RandomByte changed the title [FEATURE] TaskUtil: Add getProject/getDependencies API to interface [FEATURE] TaskUtil: Enhance interface provided to custom tasks defining specVersion 3.0 and later Nov 17, 2022
@coveralls
Copy link

coveralls commented Nov 17, 2022

Coverage Status

Coverage increased (+0.02%) to 94.602% when pulling 1ca2265 on taskUtil-v3 into 75e88b9 on main.

RandomByte added a commit to SAP/ui5-builder that referenced this pull request Nov 18, 2022
matz3
matz3 previously approved these changes Nov 18, 2022
@RandomByte RandomByte requested a review from KlattG November 23, 2022 13:02
/**
* @public
*/
* Get the project kind
Copy link
Contributor

Choose a reason for hiding this comment

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

How does this differ from the 'project type' below?

* Get the project kind
*
* @public
* @returns {string} Project kind
Copy link
Contributor

Choose a reason for hiding this comment

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

It's confusing to have both a 'kind' and 'type' of project. Can this be remedied?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you for pointing this out. I did a mistake by referring to a specification as a "project".

In fact, a specification can be either a "project", or an "extension" (this is defined by the kind property). There might be other kinds in the future too...

I updated the documentation in the latest commit: 88375b7 (#514)

Copy link
Contributor

@KlattG KlattG Nov 23, 2022

Choose a reason for hiding this comment

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

I still think it might cause confusion if we're having both a kind and a type of specification, since these terms are used as synonyms so often. Is there really no other way to do this?

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree it is confusing. But sadly we introduced the additional "kind" term over two years ago when we added support for extensions. So I think it is to late to change any of the two terms now.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's really unfortunate. I think it would make sense to at least explain these terms better. Maybe we could put a more detailed example in, together with the definitions - what do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that makes sense. I'll create a dedicated PR for that 👍 Thanks!

RandomByte and others added 2 commits November 23, 2022 15:41
[TaskUtil]{@link @ui5/project/build/helpers/TaskUtil} instance
{@ui5/project/build/helpers/TaskUtil} parameters.taskUtil Specification Version-dependent
interface of a [TaskUtil]{@link @ui5/project/build/helpers/TaskUtil} instance
{@ui5/logger/GroupLogger} [parameters.log] Logger instance to use by the custom task.
Copy link
Member

Choose a reason for hiding this comment

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

We should make @ui5/logger/GroupLogger public, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes!

matz3
matz3 previously approved these changes Nov 24, 2022
Co-authored-by: Günter Klatt <57760635+KlattG@users.noreply.github.com>
@RandomByte RandomByte merged commit 89ae940 into main Nov 24, 2022
@RandomByte RandomByte deleted the taskUtil-v3 branch November 24, 2022 16:24
RandomByte added a commit to SAP/ui5-builder that referenced this pull request Nov 29, 2022
RandomByte added a commit to SAP/ui5-builder that referenced this pull request Nov 29, 2022
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