Browse Source

Merge pull request #21 from pelias/remove-npm-calls

Remove all calls to npm in `pelias` binary
pull/24/head
Julian Simioni 6 years ago committed by GitHub
parent
commit
0e32bc7625
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      cmd/download.sh
  2. 10
      cmd/import.sh

10
cmd/download.sh

@ -2,11 +2,11 @@
set -e;
# per-source downloads
function download_wof(){ compose_run 'whosonfirst' npm run download; }
function download_oa(){ compose_run 'openaddresses' npm run download; }
function download_osm(){ compose_run 'openstreetmap' npm run download; }
function download_tiger(){ compose_run 'interpolation' npm run download-tiger; }
function download_transit(){ compose_run 'transit' npm run download; }
function download_wof(){ compose_run 'whosonfirst' './bin/download'; }
function download_oa(){ compose_run 'openaddresses' './bin/download'; }
function download_osm(){ compose_run 'openstreetmap' './bin/download'; }
function download_tiger(){ compose_run 'interpolation' './bin/download-tiger'; }
function download_transit(){ compose_run 'transit' './bin/download'; }
register 'download' 'wof' '(re)download whosonfirst data' download_wof
register 'download' 'oa' '(re)download openaddresses data' download_oa

10
cmd/import.sh

@ -2,11 +2,11 @@
set -e;
# per-source imports
function import_wof(){ compose_run 'whosonfirst' npm start; }
function import_oa(){ compose_run 'openaddresses' npm start; }
function import_osm(){ compose_run 'openstreetmap' npm start; }
function import_polylines(){ compose_run 'polylines' npm start; }
function import_transit(){ compose_run 'transit' npm start; }
function import_wof(){ compose_run 'whosonfirst' './bin/start'; }
function import_oa(){ compose_run 'openaddresses' './bin/start'; }
function import_osm(){ compose_run 'openstreetmap' './bin/start'; }
function import_polylines(){ compose_run 'polylines' './bin/start'; }
function import_transit(){ compose_run 'transit' './bin/start'; }
register 'import' 'wof' '(re)import whosonfirst data' import_wof
register 'import' 'oa' '(re)import openaddresses data' import_oa

Loading…
Cancel
Save