copy data for validate_static
This commit is contained in:
parent
083f1960ba
commit
21cbd70905
@ -5,11 +5,14 @@ shopt -s dotglob extglob globstar
|
|||||||
|
|
||||||
export PATH="$PWD/node_modules/.bin:$PATH"
|
export PATH="$PWD/node_modules/.bin:$PATH"
|
||||||
|
|
||||||
for file in static/**/*.@(json|webmanifest); do
|
rm -rf static_tmp
|
||||||
|
cp -a static static_tmp
|
||||||
|
|
||||||
|
for file in static_tmp/**/*.@(json|webmanifest); do
|
||||||
json_verify < "$file" >/dev/null
|
json_verify < "$file" >/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
xmllint --noout static/**/*.@(html|svg|xml)
|
xmllint --noout static_tmp/**/*.@(html|svg|xml)
|
||||||
eslint static/**/!(zip.min|z-worker).js
|
eslint static_tmp/**/!(zip.min|z-worker).js
|
||||||
stylelint static/**/*.css
|
stylelint static_tmp/**/*.css
|
||||||
validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg)
|
validatornu --Werror --also-check-css --also-check-svg static_tmp/**/*.@(css|html|svg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user