Service worker enabled for offline and add to homescreen excellence.
This is a @samccone & @paulirish collab. Also probably other awesome people. #sosage
To update caltrain GTFS data. (gtfs: wiki, class diagram)
# probably want to use rvm because ruby bundles and version compat is hard
rvm
# download latest, reset line endings, prepare data
rake download_data && dos2unix gtfs/*.txt && rake prepare_data
# inline data into the index.html, refresh the timestamp, bump the sw
yarn build
yarn test # does both of the below, in order
yarn unit:dl # download the latest times from the online schedule. Adjust the results and save to JSON.
yarn unit # open the app, fetch the JSON files, then assert the schedules are equal clientside.
# Puppeteer will report if the page says there are failures or not.
This is a fork of https://github.com/ranmocy/rCaltrain - he did fantastic work. Thank you.