From 48055f0527c77b71fb402d2af15c47b4d8db40e0 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 5 Sep 2018 15:55:11 -0400 Subject: [PATCH] LP#1775466 make_release builds Angular app Signed-off-by: Bill Erickson Signed-off-by: Galen Charlton --- build/tools/make_release | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/build/tools/make_release b/build/tools/make_release index f82ff3ddcb..050f95bec1 100755 --- a/build/tools/make_release +++ b/build/tools/make_release @@ -332,14 +332,24 @@ XULRUNNER_VERSION=${XULRUNNER_VERSION##XULRUNNER_VERSION=} echo "Prepping server download files" if [ "$BUILD_BROWSER_CLIENT" == "YES" ]; then + # AngularJS staff client cd ../../../ - echo "Building browser staff client" + echo "Building AngularJS browser staff client" cd Open-ILS/web/js/ui/default/staff/ npm install # fetch build dependencies npm run build-prod # copy to build dir and minify JS files # npm cache is big and unnecessary in the final build. remove it. rm -r node_modules - cd ../../../../../../../ # release dir + cd ../../../../../ # Open-ILS dir + + # Angular staff client + echo "Building Angular browser staff client" + cd src/eg2 + npm install # fetch build dependencies + ng build --prod + # npm cache is big and unnecessary in the final build. remove it. + rm -r node_modules + cd ../../../../ # release dir else echo "Skipping browser client build" cd ../../../../ -- 2.43.2