Add some hardening against non-generated layouts

This commit is contained in:
Pieter Vander Vennet 2024-07-19 17:12:31 +02:00
parent 5bb6a6bf63
commit 1853af06a0
3 changed files with 38 additions and 7 deletions

View file

@ -9,12 +9,22 @@ echo "Starting build"
# sanity check
if [[ -f "bookcases.html" ]]
then
echo "Bookcases exists"
echo "Bookcases theme exists"
else
echo "Bookcases.html does not exist - aborting"
exit 1
fi
# sanity check
if [[ -f "waste.html" ]]
then
echo "Waste theme exists"
else
echo "waste.html does not exist - aborting"
exit 1
fi
export NODE_OPTIONS=--max-old-space-size=16000
which vite
vite --version