Interactive interface for browsing global, full-resolution satellite imagery
Created bash script to update options repo; Added npm and grunt commands
ZachTRiceb1527be8af06
diff --git a/Gruntfile.js b/Gruntfile.jsindex 359a0788a..5eb45ba28 100644--- a/Gruntfile.js+++ b/Gruntfile.js@@ -378,6 +378,10 @@ module.exports = function(grunt) {command: findCmd},+ options_check: {+ command: 'options-check.sh'+ },+fetch: {command: "bash -c \"PATH=" + pythonPath + ":\"${PATH}\" FETCH_GC=1 bin/wv-options-build \"" + env},@@ -760,6 +764,8 @@ module.exports = function(grunt) {"copy:dist_config_versioned"]);+ grunt.registerTask("options-check", ["exec:options_check"]);+grunt.registerTask("fetch", ["exec:fetch"]);grunt.registerTask("site", [@@ -802,6 +808,7 @@ module.exports = function(grunt) {grunt.registerTask("default", ["update-packages",+ "options-check","fetch","update","build",diff --git a/options-check.sh b/options-check.shnew file mode 100644index 000000000..a66c8310e--- /dev/null+++ b/options-check.sh@@ -0,0 +1,10 @@+#!/bin/bash+changed=0+cd options && git remote update && git status -uno | grep -q 'Your branch is behind' && changed=1+if [ $changed = 1 ]; then+ git pull && cd -+ echo "Updated successfully";+else+ cd -+ echo "Up-to-date"+fidiff --git a/package.json b/package.jsonindex b1151e235..fdb12d53c 100644--- a/package.json+++ b/package.json@@ -11,7 +11,8 @@"scripts": {"test": "grunt test lint","start": "node ./bin/www",- "preinstall": "node version-check.js"+ "preinstall": "node version-check.js",+ "options-check": "git-check.sh"},"devDependencies": {"autoprefixer": "7.1.1",