LP#1775466 Add Angular(6) build steps to make_release
authorBill Erickson <berickxx@gmail.com>
Fri, 24 Aug 2018 21:30:19 +0000 (17:30 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 24 Aug 2018 21:39:06 +0000 (17:39 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
build/tools/make_release

index f82ff3d..050f95b 100755 (executable)
@@ -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 ../../../../