refactor(builder): Run generateVersionInfo by default#1453
refactor(builder): Run generateVersionInfo by default#1453maxreichmann wants to merge 9 commits into
generateVersionInfo by default#1453Conversation
`+` Fix some related tests
generateVersionInfo
`+` Adjust Standard Tasks table (TODO: check `transformBootstrapHTML` link!!)
generateVersionInfogenerateVersionInfo by default
|
We should also check how this now relates to the |
`+` 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`)
130029c to
0d3d9db
Compare
8125892 to
f354410
Compare
(versionInfo middleware still runs -> sap-ui-version.json is generated) `+` add test verifying exclusion `+` adjust docs stating this exclusion
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!
| ui5DataDir, | ||
| }) { | ||
| // Explicitly exclude task "generateVersionInfo" for Server builds | ||
| // because middleware "versionInfo" will generate the version info anyways. |
There was a problem hiding this comment.
This handling should be moved to into the @ui5/server code in packages/server/lib/server.js, which does provide an HTTP server with the mentioned versionInfo middleware.
This @ui5/project API only returns the BuildServer, which is the underlying functionality, but it is not opinionated about the integration, and does not know about the versionInfo middleware.
This means that the BuildServer integration tests are likely unaffected by this change, which is fine.
There was a problem hiding this comment.
This means that the BuildServer integration tests are likely unaffected by this change, which is fine.
I understand why to move the logic to server.js (originally I also thought about this). But isn't it also fine in ProjectGraph.js? I mean, it'd be in the dedicated serve() function outside of build() and we would have more realistic tests in BuildServer.integration.js. With the other way, the tests are logically correct but tend to be more unit test like.
b520126 to
94494b7
Compare
94494b7 to
cd38857
Compare
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