blob: 427ddfea02d8e901c7ee1bb45f87bfe8881a3c98 [file] [log] [blame]
#!/usr/bin/env bash
set -e # halt script on error
# Make sure we have the required dependencies.
echo "$ npm install"
npm install
# Create the JavaScript bundle.
echo "$ npm run build:js"
npm run build:js
# build site with Jekyll
echo "$ bundle exec jekyll build"
bundle exec jekyll build
if [[ $DISABLE_EXTERNAL_SITE_CHECK = "true" ]]; then
# run htmlproofer to test the site
echo "$ bundle exec htmlproofer ./_site --disable-external"
bundle exec htmlproofer ./_site --disable-external true
else
# run htmlproofer to test the site
echo "$ bundle exec htmlproofer ./_site"
bundle exec htmlproofer ./_site
fi