Helps you catch the next ferry in Amsterdam.
build
cleans and then builds app completely and outputs it todist
directoryclean
removesbuild
anddist
directoriesformat
formats code using eslint and Prettierlint
lints code using eslint and Prettierstart:build
runs app fromdist
directory, generated bybuild
start
runs app for development, reloading on file changeswatch
compiles TypeScript and outputs JavaScript tobuild
directory, updating on file changes
There also some more specialized scripts like lint:eslint
.
Please see package.json
for a complete list.
To scrape the timetables from the gvb.nl
API run:
node scripts/scrape.js
This caches API responses in the scrape-cache
directory.
If you wish to fetch fresh responses then you can remove this before running the script.
Finally, the responses are summarized and a components/lazy-ferry/src/journeys.js
module is generated.