summaryrefslogtreecommitdiff
path: root/validate_static
blob: bb46fc0004d14be0aa4499a860ad40480c9aca2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -o errexit -o nounset -o pipefail
shopt -s dotglob extglob globstar

export PATH="$PWD/node_modules/.bin:$PATH"

for file in static/**/*.@(json|webmanifest); do
    json_verify < "$file" >/dev/null
done

xmllint --noout static/**/*.@(html|svg|xml)
eslint static/**/!(webadb).js
stylelint static/**/*.css
validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg)