create_build_info_js
This script will create a file with the given name containing build information accessible by JavaScript code.
The value of
|
The value of |
Usage
$ scripts/web/create_build_info_js.sh src/build-info.mjs
⇓
src/build-info.mjs
export const buildInfo = {
build: {
id: '1710116787',
time: '2024-03-11T00:26:27Z',
},
git: {
branch: 'main',
commit: {
id: '4768a3cf26cecc00a23be6acdf430809e4bb67a7',
time: '2024-03-11T00:25:48Z',
},
},
};