Update scripts/postbuild.sh
authorJason Stephenson <jason@sigio.com>
Wed, 20 Feb 2019 14:33:07 +0000 (09:33 -0500)
committerJason Stephenson <jason@sigio.com>
Wed, 20 Feb 2019 14:35:29 +0000 (09:35 -0500)
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 <jason@sigio.com>
scripts/postbuild.sh

index 223cfab..a2a69eb 100755 (executable)
@@ -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