From a4de1ddecf47f3f59bc79e38c14ea66dc71b1275 Mon Sep 17 00:00:00 2001 From: Hermann Kraus Date: Mon, 9 Oct 2017 00:07:08 +0200 Subject: [PATCH] Make building the web interface easier by automatically installing the dependencies. --- code/build.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/build.sh b/code/build.sh index 3c051dc8..7dec02e2 100755 --- a/code/build.sh +++ b/code/build.sh @@ -28,6 +28,12 @@ echo "Building for version $version" # Create output folder mkdir -p firmware +if [ ! -e node_modules/gulp/bin/gulp.js ]; then + echo "--------------------------------------------------------------" + echo "Installing dependencies..." + npm install --only=dev +fi + # Recreate web interface echo "--------------------------------------------------------------" echo "Building web interface..."