hakurei.app/validate_static
2020-05-06 15:24:03 -04:00

14 lines
387 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
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