gen-app-version
this script will parse git describe output and generate a standard app-version.ts
file exporting a constant with all the needed version formats as properties
Install
npm i -g gen-app-version
Usage
$ cd my-git-local-repo
$ genAppVersionTS
Wrote version info v1.13.0-1-g9697d15 to .\my-git-local-repo\app-version.ts
file example app-version.ts
export const VERSION = {"dirty":false,"raw":"v1.0.0-2-gab291c8","hash":"gab291c8","distance":2,"tag":"v1.0.0","semver":{"raw":"v1.0.0","major":1,"minor":0,"patch":0,"prerelease":[],"build":[],"version":"1.0.0"},"suffix":"2-gab291c8","semverString":"1.0.0+2.gab291c8"};