Go package for Who's On First www-related utilities.
You will need to have both Go
and the make
programs installed on your computer. Assuming you do just type:
make bin
All of this package's dependencies are bundled with the code in the vendor
directory.
A bare bones tool for cloning a static website to S3.
./bin/wof-clone-website -strict -mime-type .yaml=text/x-yaml -s3-credentials shared:~.aws/credentials:default -s3-prefix nearby -source ../whosonfirst-www-nearby/www/
There is very primitive functionality available via the -ignore
flag:
./bin/wof-clone-website -ignore \~ -ignore .DS_Store -ignore .gitignore -strict -s3-bucket whosonfirst.dev.mapzen.com -source www/
A bare bones tool for generating ID-based static files for Who's On First placetypes and sources.
./bin/wof-mk-static -static ../whosonfirst-www/www/placetypes ../whosonfirst-placetypes/placetypes/*.json
./bin/wof-mk-static -id id -static ../whosonfirst-www/www/sources ../whosonfirst-sources/sources/*.json
See the way we have to pass an -id
flag to the second command? That's a thing we need to fix...
Or something like this:
./bin/wof-mk-static -id id -static ../whosonfirst-sources/static ../whosonfirst-sources/sources/*.json
./bin/wof-clone-website -s3-credentials shared:/path/to/.aws/credentials:default -s3-bucket whosonfirst.mapzen.com -s3-prefix data -source ../whosonfirst-sources/static/