From 8ff9311268367ecf361c87b5818ab27b11bb5ac9 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Thu, 3 Jun 2021 14:51:34 -0400 Subject: [PATCH] build(striker-ui): add build step to generate .env.local --- striker-ui/Makefile.am | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/striker-ui/Makefile.am b/striker-ui/Makefile.am index fa9dfe05..a07c714f 100644 --- a/striker-ui/Makefile.am +++ b/striker-ui/Makefile.am @@ -103,7 +103,12 @@ EXTRA_DIST = \ htmldir = $(localstatedir)/www/html build: - echo "Install node modules (dependencies) prior to building." + -@echo "Print working directory." + pwd + -@echo "Install node modules (dependencies) prior to building." npm clean-install - echo "Build front-end project." + -@echo "Generate endpoint prefix." + # Note: the input file must exist in EXTRA_DIST. + sed 's@=.*@=/cgi-bin@' .env.local + -@echo "Build front-end project." npm run build