public-apis/build/build.sh
2017-07-03 00:48:12 -04:00

9 lines
338 B
Bash
Executable File

#!/bin/bash
# create json directory if not already present
mkdir -p ../json
# parse API README and print (minified) JSON to stdout, redirect to /json
node md2json.js ../README.md > ../json/entries.min.json
# beautify the previously created JSON file, redirect to /json
python -m json.tool ../json/entries.min.json > ../json/entries.json