Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

added grunt tasts to simplify package syncing & added to docs #166 #91

Benjaminf6fd28c02a88
diff --git a/Gruntfile.js b/Gruntfile.js
index 441b8e7c9..0994e4b0f 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -313,6 +313,13 @@ module.exports = function(grunt) {
fetch: {
command: "PATH=python/bin:${PATH} FETCH_GC=1 bin/wv-options-build " + env
},
+ node_packages: {
+ command: 'npm update'
+ },
+
+ python_packages: {
+ command: 'virtualenv python && python/bin/pip install xmltodict isodate'
+ },
rpmbuild: {
command: 'rpmbuild --define "_topdir $PWD/build/rpmbuild" ' +
@@ -668,7 +675,7 @@ module.exports = function(grunt) {
"copy:dist_config_versioned"
]);
- grunt.registerTask("fetch", ["exec:fetch"])
+ grunt.registerTask("fetch", ["exec:fetch"]);
grunt.registerTask("site", [
"load_branding",
@@ -700,11 +707,12 @@ module.exports = function(grunt) {
]);
grunt.registerTask("update",["remove:modules", "copy:ext"]);
+ grunt.registerTask("update-packages",["exec:python_packages", "exec:node_packages", "update"]);
grunt.registerTask("check", ["lint", "test"]);
grunt.registerTask("clean", ["remove:build"]);
grunt.registerTask("distclean", ["remove:build", "remove:dist"]);
grunt.registerTask("lint", ["jshint:console"]);
grunt.registerTask("test", ["buster:console"]);
- grunt.registerTask("default", ["update", "build", "config", "site"]);
+ grunt.registerTask("default", ["python_packages", "update", "build", "config", "site"]);
};
diff --git a/doc/developing.md b/doc/developing.md
index e006dd59d..dc484c841 100644
--- a/doc/developing.md
+++ b/doc/developing.md
@@ -21,6 +21,11 @@ If there are some CSS or JavaScript files that must be available in
non-concatenated form, add exceptions in the ``remove:source`` task in
``Gruntfile.js``
+## Syncing with remote branch
+Update packages that may have been adjusted since your last pull
+
+ grunt update-packages
+
## Naming and Versioning
The ``options.json`` file contains the name, version, and release number
diff --git a/doc/manual_setup.md b/doc/manual_setup.md
index aac09adbd..8b40de1b2 100644
--- a/doc/manual_setup.md
+++ b/doc/manual_setup.md
@@ -40,13 +40,6 @@ libraries installed in a local directory:
sudo easy_install virtualenv==1.10.1
```
-Setup a virtualenv and install dependencies:
-
-```bash
-virtualenv python
-python/bin/pip install xmltodict
-```
-
Start the build with:
```bash