From f64ee113c5caae5301251eeea548995b0de8fac2 Mon Sep 17 00:00:00 2001 From: Drew Ansbacher Date: Wed, 20 Oct 2021 11:16:02 -0600 Subject: [PATCH] git hash makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 99f62543b..3b2fb68a0 100644 --- a/Makefile +++ b/Makefile @@ -52,12 +52,16 @@ $(EMBASSY_BINS): $(APPMGR_SRC) ui/node_modules: ui/package.json npm --prefix ui install -ui/www: $(UI_SRC) ui/node_modules patch-db/client patch-db/client/dist ui/config.json +ui/www: $(UI_SRC) ui/node_modules patch-db/client patch-db/client/dist ui/config.json config-git-hash npm --prefix ui run build-prod ui/config.json: jq '.mocks.enabled = false' ui/config-sample.json > ui/config.json +config-git-hash: ui/config.json + tmp=$(mktemp) + jq '.gitHash = "$(shell git rev-parse HEAD)"' ui/config.json > "$tmp" && mv "$tmp" ui/config.json + setup-wizard/node_modules: setup-wizard/package.json npm --prefix setup-wizard install