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

[BREAKING] Adapt to ui5-project changes. Add Link-reader, WriterCollection #381

Merged
merged 10 commits into from
Jun 13, 2022

Conversation

RandomByte
Copy link
Member

@RandomByte RandomByte commented Jun 13, 2022

Nicer version of #302

Remove super-collection system from ResourceTagCollection
Link reader:
Allows automatic rewriting of paths and glob patterns to other paths.
I.e. a path "/" can be rewritten to "/resorces/project/namespace"

WriterCollection:
Allows to define a collection of writers mapped to a set of path
prefixes.
I.e. one writer should be used when writing a resource with the path
prefix "/resources/project/namespace/*" and another one for all other
paths ("/")
Resource readers are now created during project graph creation in the
corresponding specification implementation
lib/WriterCollection.js Fixed Show fixed Hide fixed
@RandomByte RandomByte changed the title [INTERNAL] resourceFactory: Add #createReader and #reateReaderCollection [BREAKING] Adapt to ui5-project changes. Add Link-reader, WriterCollection Jun 13, 2022
@RandomByte RandomByte requested review from matz3 June 13, 2022 12:15
@RandomByte RandomByte merged commit 5a693fe into next Jun 13, 2022
@RandomByte RandomByte deleted the ui5-fs-3.0 branch June 13, 2022 15:10
@coveralls
Copy link

Coverage Status

Coverage decreased (-12.2%) to 75.256% when pulling 24e2b35 on ui5-fs-3.0 into 7ced04a on next.

RandomByte added a commit to SAP/ui5-builder that referenced this pull request Jun 13, 2022
Build execution is moved to ui5-project (see SAP/ui5-project#457).
Going forward, ui5-builder shall only provide task implementations and selected helper
modules like TaskUtil.

TaskUtil will provide a new `getProject()` function to custom tasks defining specVersion 2.7 and above.

BREAKING CHANGE:
* builder.js has been removed. Use ui5-project builder instead
* Tasks now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* TaskRepository#addTask has been removed. Custom tasks need to be added to the project graph instead
* TaskUtil#get/set/clearTag now requires a Project instance to be provided. Path strings are no longer sufficient
  and will cause an exception to be thrown

Co-authored-by: Matthias Osswald <mat.osswald@sap.com>
RandomByte added a commit to SAP/ui5-server that referenced this pull request Jun 13, 2022
Adapt to new Project Graph API (see SAP/ui5-project#457)

BREAKING CHANGE:
* Server now requires a Project Graph instance instead.
* Standard middleware now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* MiddlewareRepository#addMiddleware has been removed. Custom middleware need to be added to the project graph instead
flovogt pushed a commit to SAP/ui5-builder that referenced this pull request Jun 14, 2022
Build execution is moved to ui5-project (see SAP/ui5-project#457).
Going forward, ui5-builder shall only provide task implementations and selected helper
modules like TaskUtil.

TaskUtil will provide a new `getProject()` function to custom tasks defining specVersion 2.7 and above.

BREAKING CHANGE:
* builder.js has been removed. Use ui5-project builder instead
* Tasks now rely on Project instances being available on Resources (see SAP/ui5-fs#381)
* TaskRepository#addTask has been removed. Custom tasks need to be added to the project graph instead
* TaskUtil#get/set/clearTag now requires a Project instance to be provided. Path strings are no longer sufficient
  and will cause an exception to be thrown

Co-authored-by: Matthias Osswald <mat.osswald@sap.com>
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.

3 participants