Set version of UKIS on the HTML document
boeckMt opened this issue · 2 comments
boeckMt commented
Description
To easily see what version of ukis was used on a deployed running app we could set it like angular or clarity on the HTML at runtime.
- https://github.com/vmware/clarity/blob/c77f0a86fc40c600adad1e5e8d8073f3fb1d282e/packages/core/src/internal/utils/global.ts
- https://github.com/angular/angular/blob/b49ffcd50e46ca7907ee2049f6cade8e080f5980/packages/core/src/render3/component_ref.ts#L159
Relevant Package
This feature request is for @dlr-eoc/....
Or if it is not fitting anywhere then a new @dlr-eoc/
boeckMt commented
This could be implemented in core-ui/schematics
https://github.com/dlr-eoc/ukis-frontend-libraries/tree/main/projects/core-ui/schematics/ng-add/files/src
Or maybe the better way would be if this is done on application site at build time.
E.g. add the package version or a commit hash to the index.html meta through the cli natively (this need a PR) or with a custom builder
boeckMt commented
It would also be possible to export a version like Angular