From d01115f54b29e9b90a0b19d1df300e24e33cd895 Mon Sep 17 00:00:00 2001 From: redfast00 Date: Sun, 12 Aug 2018 12:48:34 +0200 Subject: [PATCH] Remove jsontool dependency --- README.md | 4 ---- deploy.sh | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 87e6099..4f241ab 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,3 @@ We usually use data from [Stad Gent](https://stad.gent/studenten/studeren/bloklo ## Dev You can easily run the site locally by spawning a simple static file server in the `src` directory. For example with `python3 -m http.server` or any other one-liner in [this big list](https://gist.github.com/willurd/5720255). - -This package uses [jsonlint](https://github.com/zaach/jsonlint) to check the validity of the json file. - -Test validity locally by installing the npm package with `npm install -g jsonlint` and then running `jsonlint src/data.json`. diff --git a/deploy.sh b/deploy.sh index f805fef..e3b2d66 100755 --- a/deploy.sh +++ b/deploy.sh @@ -14,7 +14,7 @@ echo "-> Pulling latest release" git pull | grep 'Already up[- ]to[- ]date.' && echo "No updates, exiting..." && exit 20 echo "-> Checking validity of data.json" -jsonlint src/data.json +python -m json.tool src/data.json > /dev/null # Create release dir and copy sources to that dir