Interactive interface for browsing global, full-resolution satellite imagery
Update and clean up deploy scripts
Jo Spraguea4751a73adf6
diff --git a/config.sh b/config.shindex a1ce43b5d..53de597b4 100644--- a/config.sh+++ b/config.sh@@ -1,32 +1,16 @@#!/bin/bash-echo "installing npm dependencies"+# Reset build and dist directories+rm -rf build+rm -rf dist++echo "Installing Dependencies"if ! npm install ; thenecho "ERROR: \"npm install\" failed" &>2exit 1fi-echo "Cleaning build"-if ! grunt clean:build ; then- echo "ERROR: \"grunt clean:build\" failed" &>2- exit 1-fi-echo "Cleaning dist"-if ! grunt clean:dist ; then- echo "ERROR: \"grunt clean:dist\" failed" &>2- exit 1-fi-echo "Fetching GetCapabilities"-if ! npm run getcapabilities ; then- echo "ERROR: \"npm run getcapabilities\" failed" &>2- exit 1-fi-echo "Fetching GetCapabilities"-if ! npm run build:config ; then- echo "ERROR: \"npm run build:config\" failed" &>2- exit 1-fi-echo "Generating Configuration"-if ! grunt config ; then- echo "ERROR: \"grunt config\" failed" &>2+echo "Building Options Repo"+if ! npm run updateconfig ; then+ echo "ERROR: \"npm run updateconfig\" failed" &>2exit 1fidiff --git a/master.sh b/master.shindex 4486ba136..b10bdabf1 100644--- a/master.sh+++ b/master.sh@@ -1,26 +1,28 @@#!/bin/bash-echo "installing npm dependencies"+# Reset build and dist directories+rm -rf build+rm -rf dist++echo "Installing Dependencies"if ! npm install ; thenecho "ERROR: \"npm install\" failed" &>2exit 1fi-echo "Cleaning build"-if ! grunt clean:build ; then- echo "ERROR: \"grunt clean:build\" failed" &>2- exit 1-fi-echo "Cleaning dist"-if ! grunt clean:dist ; then- echo "ERROR: \"grunt clean:dist\" failed" &>2++echo "Building Worldview CSS"+if ! npm run build:css ; then+ echo "ERROR: \"npm run build:css\" failed" &>2exit 1fi-echo "Generating build"-if ! npm run build ; then- echo "ERROR: \"npm run build\" failed" &>2++echo "Building Worldview JavaScript"+if ! npm run build:js ; then+ echo "ERROR: \"npm run build:js\" failed" &>2exit 1fi-echo "Generating build"++echo "Building Worldview Repo and generating tar files"if ! grunt build ; thenecho "ERROR: \"grunt build\" failed" &>2exit 1diff --git a/site_build.sh b/site_build.shindex fc1ff4fe0..8e252177c 100644--- a/site_build.sh+++ b/site_build.sh@@ -9,17 +9,17 @@ echo "Unpacking Build Artifacts"tar xf worldview-debug.tar.bz2 && \tar xf worldview-config.tar.bz2)-echo "installing npm dependencies"+echo "Installing Dependencies"if ! npm install ; thenecho "ERROR: \"npm install\" failed" &>2exit 1fi-echo "Generating site via 'grunt site'"+echo "Combining build results from options and Worldview repos"if ! grunt site ; thenecho "ERROR: \"grunt site\" failed" &>2exit 1fi-echo "Generating rpm via 'grunt rpm-only'"+echo "Generating an RPM of Worldview"if ! grunt rpm-only ; thenecho "ERROR: \"grunt rpm-only\" failed" &>2exit 1