rename scripts

This commit is contained in:
Daniel Micay
2021-07-08 04:33:12 -04:00
parent 671c9b6570
commit 7329d664bb
4 changed files with 6 additions and 6 deletions

19
validate-static Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -o errexit -o nounset -o pipefail
shopt -s dotglob extglob globstar
export PATH="$PWD/node_modules/.bin:$PATH"
rm -rf static_tmp
cp -a static static_tmp
rm -rf static_tmp/js/fastboot/{!(dist),dist/!(fastboot.min.mjs|fastboot.min.mjs.map|vendor)}
for file in static_tmp/**/*.@(json|webmanifest); do
json_verify < "$file" >/dev/null
done
xmllint --noout static_tmp/**/*.@(html|svg|xml)
eslint static_tmp/**/!(fastboot.min.m|z-worker-pako.|pako_inflate.min.|)js
stylelint static_tmp/**/*.css
validatornu --Werror --also-check-css --also-check-svg static_tmp/**/*.@(css|html|svg)