From ac63f7136b53745514ff279c85710cfa3fe8561d Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 8 Jan 2018 08:27:04 +0700 Subject: [PATCH] Moved build.sh dependency check up to prevent initial path problems. --- web/source/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/source/build.sh b/web/source/build.sh index 63e8e315a5..6b2e76759f 100755 --- a/web/source/build.sh +++ b/web/source/build.sh @@ -25,6 +25,10 @@ assert ( ) { fi } +# Ensure the dependencies are downloaded. +echo "Node.js + dependencies check" +npm install + : ${CLOSURECOMPILERPATH:=../node_modules/google-closure-compiler} : ${JAVA:=java} @@ -65,10 +69,6 @@ minify ( ) { //# sourceMappingURL=$1.map" } -# Ensure the dependencies are downloaded. -echo "Node.js + dependencies check" -npm install - if [ $? -ne 0 ]; then fail "Build environment setup error detected! Please ensure Node.js is installed!" fi