Skip to content

refactor(builder): Run generateVersionInfo by default#1453

Open
maxreichmann wants to merge 12 commits into
mainfrom
run-generateVersionInfo-by-default
Open

refactor(builder): Run generateVersionInfo by default#1453
maxreichmann wants to merge 12 commits into
mainfrom
run-generateVersionInfo-by-default

Conversation

@maxreichmann

@maxreichmann maxreichmann commented Jul 16, 2026

Copy link
Copy Markdown
Member

JIRA: CPOUI5FOUNDATION-1157


What has been done?

  • Exclusion of task generateVersionInforemoved
    • now it will be executed by default for every build of project type application (default, jsdoc, self-contained)
  • Tests refactored accordingly
  • Docs
    • migrate-v5.md: new section explaining new behavior
    • Builder.md: changed generateVersionInfo from disabled to enabled in Standard Tasks table

Info

  • for Server:

@maxreichmann maxreichmann changed the title refactor(builder): Remove default exclusion of "generateVersionInfo" refactor(builder): Remove default exclusion of generateVersionInfo Jul 16, 2026
@maxreichmann maxreichmann changed the title refactor(builder): Remove default exclusion of generateVersionInfo refactor(builder): Run generateVersionInfo by default Jul 20, 2026
@matz3

matz3 commented Jul 20, 2026

Copy link
Copy Markdown
Member

We should also check how this now relates to the versionInfo middleware. My assumption would be that we need to keep the middleware to serve the file for non-application projects (and when the task was skipped?). For application projects, we should be able to just serve the file from the application build output. This should at least be tested, confirmed and documented.

@maxreichmann
maxreichmann force-pushed the run-generateVersionInfo-by-default branch 5 times, most recently from f354410 to b6ca355 Compare July 22, 2026 10:11
@maxreichmann

Copy link
Copy Markdown
Member Author

Update:

  • generateVersionInfo is now excluded from server builds (for normal builds, it's executed by default).
  • Tests are added and existing ones are adjusted.
  • Docs are adjusted.
    --> Main part is done and ready for review.

"Side tasks done": I'm also fine to move those changes out to another PR if this eases the review process.

@matz3 matz3 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

"Side tasks done": I'm also fine to move those changes out to another PR if this eases the review process.

Yes, I think that would help with reviewing the docs changes. Thanks for looking into that!

Comment thread internal/documentation/docs/pages/Builder.md Outdated
Comment thread internal/documentation/docs/pages/Builder.md Outdated
Comment thread packages/project/lib/graph/ProjectGraph.js Outdated
@maxreichmann
maxreichmann force-pushed the run-generateVersionInfo-by-default branch 6 times, most recently from fe552c6 to da4d1f4 Compare July 23, 2026 10:20
@maxreichmann

maxreichmann commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

Removing the Draft state of this PR to check merge conflicts

❗️ Pls don't start a review yet :)

@maxreichmann
maxreichmann marked this pull request as ready for review July 24, 2026 07:41
`+` Adjust Standard Tasks table (TODO: check `transformBootstrapHTML` link!!)
`+` docs: Replace hardcoded URLs (ui5.github.io/..) with dynamic links
`+` docs: Add links to all Builder tasks in Standard Tasks table
`+` refactor: Remove "jsdoc" npm script (+remove unused dep `open-cli`)
(versionInfo middleware still runs -> sap-ui-version.json is generated)
`+` add test verifying exclusion
`+` adjust docs stating this exclusion
@maxreichmann
maxreichmann force-pushed the run-generateVersionInfo-by-default branch 2 times, most recently from 7c276e1 to 0a42367 Compare July 24, 2026 08:45
(from ProjectGraph.js to server.js)

This logic will affect the `ui5 serve` command but not the internal BuildServer now.
@maxreichmann
maxreichmann force-pushed the run-generateVersionInfo-by-default branch from 0a42367 to 8827f4e Compare July 24, 2026 08:54
@maxreichmann

Copy link
Copy Markdown
Member Author

✅ Update: Rebased. CI problems now fixed. PR ready for review

@maxreichmann
maxreichmann requested a review from a team July 24, 2026 09:17
maxreichmann added a commit that referenced this pull request Jul 24, 2026
This PR includes the outsourced "Side tasks done" from original PR #1453.
Following changes have been made:

* docs: Replace hardcoded URLs (ui5.github.io/..) with dynamic links
* docs: Replace dead "API Reference" links
    * Guide the reader to use the new sidebar menu
    * Add "📚" emoji to "API" in sidebar to mimic depr. API Reference button
* docs: Add links to all Builder tasks in Standard Tasks table
* refactor(internal/documentation): Remove of npm script `jsdoc` (deprecated & not used in CI)
    * Remove now unused dep `open-cli`
maxreichmann added a commit that referenced this pull request Jul 24, 2026
This PR includes the outsourced "Side tasks done" from original PR #1453.
Following changes have been made:

* docs: Replace hardcoded URLs (ui5.github.io/..) with dynamic links
* docs: Replace dead "API Reference" links
    * Guide the reader to use the new sidebar menu
    * Add "📚" emoji to "API" in sidebar to mimic depr. API Reference button
* docs: Add links to all Builder tasks in Standard Tasks table
* refactor(internal/documentation): Remove of npm script `jsdoc` (deprecated & not used in CI)
    * Remove now unused dep `open-cli`
Comment thread packages/server/lib/server.js Outdated
Co-authored-by: Merlin Beutlberger <m.beutlberger@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