aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorevansiroky <evan.siroky@yahoo.com>2020-04-27 15:29:06 -0700
committerevansiroky <evan.siroky@yahoo.com>2020-04-27 15:29:06 -0700
commita48b392969258b5d85a2a4d76f83a959f475381d (patch)
tree6707c9102436d9567f016b100c47c035d3de63fb
parent14d42fc88fbcb8adf6e21cc5535e8bf4cf4cf3c7 (diff)
downloadtimezone-boundary-builder-a48b392969258b5d85a2a4d76f83a959f475381d.tar.gz
Add step to zip up all of the input data
Fixes #78
-rw-r--r--index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.js b/index.js
index 72b367b..56e8c02 100644
--- a/index.js
+++ b/index.js
@@ -666,6 +666,10 @@ const autoScript = {
overallProgress.beginTask('Downloading osm boundaries')
asynclib.eachSeries(Object.keys(osmBoundarySources), downloadOsmBoundary, cb)
}],
+ zipInputData: ['makeDistDir', 'getOsmBoundaries', function (results, cb) {
+ overallProgress.beginTask('Zipping up input data')
+ exec('zip dist/input-data.zip downloads/* timezones.json osmBoundarySources.json expectedZoneOverlaps.json', cb)
+ }],
createZones: ['makeDistDir', 'getOsmBoundaries', function (results, cb) {
overallProgress.beginTask('Creating timezone boundaries')
asynclib.each(Object.keys(zoneCfg), makeTimezoneBoundary, cb)