jakstys.lt/scripts/build

18 lines
517 B
Plaintext
Raw Normal View History

2023-03-25 12:43:23 +02:00
#!/usr/bin/env bash
2022-04-12 09:54:44 +03:00
set -xeuo pipefail
2023-03-25 12:43:23 +02:00
cd "$(git rev-parse --show-toplevel)"
2022-04-12 09:54:44 +03:00
2022-04-12 13:30:08 +03:00
hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log
2022-04-26 05:49:48 +03:00
# https://github.com/gohugoio/hugo/issues/8734
#hugo --cleanDestinationDir --printPathWarnings --panicOnWarning --log \
# --buildDrafts --config config.yaml,debugconfig.yaml -d public/zz
2022-04-12 09:54:44 +03:00
cd public
find . \
-name '*.html' -or \
-name '*.xml' -or \
-name '*.txt' -or \
-name '*.css' -or \
2023-03-25 12:43:23 +02:00
-name '*.map' | parallel --eta "zopfli {} && brotli {}"