Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.08 KB

README.md

File metadata and controls

27 lines (15 loc) · 1.08 KB

Data

This repository contains static data needed for clients.

How to add data

Open a PR modifying JSON file.

Once merged to master the new version of the data will be automatically available thanks to GitHub Pages.

Example

You can modify the events/all.json file, and the result will be deployed in https://fp-in-bo.github.io/data/events/all.json

Continuous Integration

Manual JSON editing is error-prone, so we check JSON files in continuous integration.

The script is written using kscript and it's embedding kscript installer so you execute it with:

scripts/validateJson.kts events/all.json

It will download all required dependencies on the first run.

Kscript can also produce standalone binaries containing a compiled copy of the script, as well as all declared dependencies (fatjar).

On Travis we are executing the script in this way, so if you need to modify it, remember to update also the binary version using

kscript --package validateJson.kts