This commit is contained in:
2022-04-12 13:07:46 +03:00
parent 4a8bc87840
commit 298907dbd4
2 changed files with 5 additions and 0 deletions

17
scripts/build Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
set -xeuo pipefail
cd "$(git rev-parse --show-toplevel)/jakstys.lt"
rm -fr public
hugo
cd public
zopfli=$(bazel run --run_under=echo @zopfli//:zopfli)
brotli=$(bazel run --run_under=echo @brotli//:brotli)
find . \
-name '*.html' -or \
-name '*.xml' -or \
-name '*.txt' -or \
-name '*.css' -or \
-name '*.map' | parallel --bar "$zopfli {} && $brotli {}"