refactor(builder): Create sap-ui-version.json by default - #1453
refactor(builder): Create sap-ui-version.json by default#1453maxreichmann wants to merge 14 commits into
sap-ui-version.json by default#1453Conversation
generateVersionInfo
generateVersionInfogenerateVersionInfo by default
|
We should also check how this now relates to the |
f354410 to
b6ca355
Compare
|
Update:
"Side tasks done": I'm also fine to move those changes out to another PR if this eases the review process. |
matz3
left a comment
There was a problem hiding this comment.
"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!
fe552c6 to
da4d1f4
Compare
|
|
0a42367 to
8827f4e
Compare
|
✅ Update: Rebased. CI problems now fixed. PR ready for review |
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`
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`
matz3
left a comment
There was a problem hiding this comment.
LGTM, just a minor comment.
Documentation changes look fine to me.
generateVersionInfo by defaultsap-ui-version.json by default
`+` Fix some related tests
`+` 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
(from ProjectGraph.js to server.js) This logic will affect the `ui5 serve` command but not the internal BuildServer now.
Co-authored-by: Merlin Beutlberger <m.beutlberger@sap.com>
59b0286 to
08268f1
Compare
Refactored `checkFileContentsIgnoreLineFeeds()` along by removing unused check for `sap-ui-cachebuster-info.json` (+Cleanup)
d95996b to
b527bf5
Compare
|
Rebased and test problem fixed. Review ready again |
b3c403d to
9a51d5c
Compare
| "arm64" | ||
| ], | ||
| "dev": true, | ||
| "libc": [ |
There was a problem hiding this comment.
package.json was not modified, so this change might not be intended?
There was a problem hiding this comment.
This happens when running npm install with npm v10.x or maybe also with an older v11.x version.
Please use the latest npm v11.x instead (currently 11.18.0).
| if (!expected.executedTasks) { | ||
| continue; // no executedTasks specified -> skip the check | ||
| } | ||
| const expectedExecuted = expected.executedTasks || []; |
There was a problem hiding this comment.
Already checked above?
| const expectedExecuted = expected.executedTasks || []; | |
| const expectedExecuted = expected.executedTasks; |
| if (!Array.isArray(excludedTasks)) { | ||
| excludedTasks = []; | ||
| } | ||
| if (!excludedTasks.includes("generateVersionInfo")) { | ||
| excludedTasks = [...excludedTasks, "generateVersionInfo"]; | ||
| } |
There was a problem hiding this comment.
Removing these lines only causes failure of a single unit test that is actually for the serveIndex middleware.
I see that server.js only has very basic unit tests as of today, but I think at last stubbing and validating the arguments provided to graph.serve would be good here.
JIRA: CPOUI5FOUNDATION-1157
What has been done?
generateVersionInforemovedapplication(default, jsdoc, self-contained)generateVersionInfo: ProjectBuilder.integration.js:2758migrate-v5.md: new section explaining new behaviorBuilder.md: changedgenerateVersionInfofrom disabled to enabled in Standard Tasks tableInfo
generateVersionInfois explicitly NOT executed because middlewareversionInfoIS executed (which createssap-ui-version.jsonanyways)generateVersionInfo: BuildServer.integration.js:1030sap-ui-version.jsonis generated: server/test/lib/server/main.js:204