This repository has been archived on 2025-10-15. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
minify-html/format

30 lines
530 B
Text
Raw Normal View History

2021-08-09 19:56:37 +10:00
#!/usr/bin/env bash
set -Eeuxo pipefail
pushd "$(dirname "$0")" >/dev/null
npx prettier@2.3.2 -w 'version' 'bench/*.{js,json}' 'bench/runners/*.{js,json}' 'bench/runners/*/*.{js,json}' 'gen/*.{ts,json}'
2021-08-09 19:56:37 +10:00
for dir in \
bench/runners/minify-html \
bench/runners/minify-html-onepass \
cli \
debug/diff/c14n \
2021-08-10 17:35:14 +10:00
debug/diff/charlines \
2021-08-09 19:56:37 +10:00
fuzz \
fuzz/process \
java \
2022-06-21 23:03:35 +10:00
nodejs \
2021-08-09 19:56:37 +10:00
python \
ruby \
rust/main \
rust/onepass \
2022-06-22 00:43:09 +10:00
wasm \
2021-08-09 19:56:37 +10:00
; do
pushd "$dir" >/dev/null
cargo fmt
popd >/dev/null
done
popd >/dev/null