summaryrefslogtreecommitdiff
path: root/validate_static
blob: a54c88973030e30b2d9da618fa349139b30cd4bc (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/**/!(web-install|webadb).js
stylelint static/**/*.css
validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg)