expand json validation / processing

This commit is contained in:
Daniel Micay
2020-11-17 17:36:16 -05:00
parent 69bfee6e20
commit dcc8933ab6
2 changed files with 11 additions and 3 deletions

View File

@@ -1,11 +1,14 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
shopt -s extglob globstar
shopt -s dotglob extglob globstar
export PATH="$PWD/node_modules/.bin:$PATH"
json_verify < static/manifest.webmanifest >/dev/null
for file in static/**/*.@(json|webmanifest); do
json_verify < "$file" >/dev/null
done
xmllint --noout static/**/*.@(html|svg|xml)
eslint static/**/*.js
stylelint static/**/*.css