1
Fork 0
jakstys.lt/scripts/build

17 lines
396 B
Plaintext
Raw Normal View History

2022-04-12 09:54:44 +03:00
#!/bin/bash
set -xeuo pipefail
cd "$(git rev-parse --show-toplevel)/jakstys.lt"
2022-04-12 13:19:39 +03:00
hugo --cleanDestinationDir
2022-04-12 09:54:44 +03:00
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 {}"