hakurei.app/validate_static
2020-05-06 15:34:59 -04:00

14 lines
398 B
Bash
Executable File

#!/bin/bash
set -o errexit -o nounset -o pipefail
shopt -s extglob globstar
export PATH="$PWD/node_modules/.bin:$PATH"
json_verify < static/manifest.webmanifest >/dev/null
xmllint --noout static/**/*.@(html|svg|xml)
jshint --verbose static/**/*.js
stylelint static/**/*.css
validatornu --Werror --also-check-css static/**/*.@(css|html)
validatornu --Werror --skip-non-svg --no-langdetect static