create_build_info_ts
This script will create a file with the given name containing build information accessible by TypeScript code.
The value of
|
The value of |
Usage
$ scripts/web/create_build_info_ts.sh src/build-info.ts
⇓
src/build-info.ts
export type BuildInfo = {
// ...
};
export const buildInfo: BuildInfo = {
build: {
id: '1710116078',
time: '2024-03-11T00:14:38Z',
},
git: {
branch: 'main',
commit: {
id: '95189bb08fa918576f10339eb15303d152ade2aa',
time: '2024-03-10T23:52:54Z',
},
},
};