From df1c282dbaad93a9367ea3cf90a5fc9300f78941 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Wed, 20 Feb 2019 09:33:07 -0500 Subject: [PATCH] Update scripts/postbuild.sh Modify the postbuild.sh script to write out "npm run build-prod" and "ng build --prod" to the buildeg.sh script when building the AngularJS and Angular code, respectively. Signed-off-by: Jason Stephenson --- scripts/postbuild.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/postbuild.sh b/scripts/postbuild.sh index 223cfab..a2a69eb 100755 --- a/scripts/postbuild.sh +++ b/scripts/postbuild.sh @@ -102,12 +102,12 @@ export PATH=\$PATH:/openils/bin # Build the web staff client: cd /home/opensrf/Evergreen/Open-ILS/web/js/ui/default/staff/ npm install -npm run build +npm run build-prod # Build new, Angular eg2, if present if [ -d "/home/opensrf/Evergreen/Open-ILS/src/eg2" ]; then cd /home/opensrf/Evergreen/Open-ILS/src/eg2 npm install - ng build + ng build --prod fi cd /home/opensrf/Evergreen -- 2.11.0