From: Jason Stephenson Date: Wed, 20 Feb 2019 14:33:07 +0000 (-0500) Subject: Update scripts/postbuild.sh X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=df1c282dbaad93a9367ea3cf90a5fc9300f78941;p=contrib%2Fmasslnc%2Fvmscripts.git 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 --- 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