Add BuildInfoModule and service
requested to merge 427-add-version-information-to-the-build-and-make-it-accessible-through-a-service into main
@rhotep @qamodi @dermicha Is there a reason why you wanted the tag to be dev
in development builds?
I added the following infos:
{
"environment": "development",
"flavor": "unknown",
"commit": "79f93b9052b375972616324c2315b5d35f380db2",
"describe": "v1.0.1-279-g79f93b90",
"short": "79f93b90",
"tag": "v1.0.4"
}
I think that environment
should be enough to distinguish?
tag
and describe
will have a -dirty
suffix if the working directory is dirty.
In the future you should always use npm run start:hcp
instead of calling ng serve […]
manually as otherwise the build info might not be updated.
The tag from the service is used in the greetings of the home page.
Closes #427 (closed)
Edited by Carlos Sanchez