mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
19 lines
767 B
Bash
19 lines
767 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
#fflint json --show-tests all --show-detail "$output_dir/**/*.json"
|
||
|
set -e -u
|
||
|
output_dir="$1"
|
||
|
|
||
|
fflint_wrapper() {
|
||
|
fflint --fail-fast --progress=false --show-tests failing $*
|
||
|
}
|
||
|
|
||
|
cd "$output_dir"
|
||
|
find '.' -type f -name "*.jpg" | fflint_wrapper --height 1-1500 --width 1-1500 jpeg @-
|
||
|
find '.' -type f -name "*.png" | fflint_wrapper --height 1-1500 --width 1-1500 png @-
|
||
|
find '.' -type f -name "*.json" -o -name ".webmanifest" | fflint_wrapper json @-
|
||
|
find '.' -type f -name "*.html" | fflint_wrapper html @-
|
||
|
find '.' -type f -name "*.svg" | fflint_wrapper --height 1-1500 --width 1-1500 svg @-
|
||
|
find '.' -type f -name "*.txt" -o -name "*.gmi" -o -name "*.asc" | fflint_wrapper text @-
|
||
|
find '.' -type f -name "*.xhtml" -o -name "*.xml" | fflint_wrapper xml @-
|