build: improve cordova-js version ID in built file (#230)
authorRaphael von der Grün <raphinesse@gmail.com>
Tue, 1 Dec 2020 09:21:49 +0000 (10:21 +0100)
committerGitHub <noreply@github.com>
Tue, 1 Dec 2020 09:21:49 +0000 (10:21 +0100)
commitad5b74ad1c173c30bf8dc9f7b70cfe3d7122877e
tree2bf2d2a9aecba48a20101b5fe48c4b043aae1771
parentf1ec5afdc6dda04854abf05673a6fc47a7bfdc0c
build: improve cordova-js version ID in built file (#230)

- uses `git describe` instead of `git rev-parse HEAD`
- fallback to version from package.json if not in a cordova-js repo
- rename and factor out buildId
build-tools/build-id.js [new file with mode: 0644]
build-tools/build.js
build-tools/bundle.js