Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.2 KiB
Bash
Raw Permalink Normal View History

2021-04-06 07:36:14 -07:00
#!/bin/bash
set -o errexit -o pipefail
source ./scripts/common.sh
# Check for Go, Hugo, Node, and Yarn.
if [[ -z "$(which go)" ]]; then
2022-04-08 08:20:14 -07:00
echo "This project requires Go."
2021-04-06 07:36:14 -07:00
echo "See the README for the complete list of prerequisities and "
echo "https://golang.org/doc/install for help installing Go."
exit 1
fi
if [[ -z "$(which hugo)" ]]; then
2022-04-08 08:20:14 -07:00
echo "This project requires Hugo."
2021-04-06 07:36:14 -07:00
echo "See the README for the complete list of prerequisities and "
echo "https://gohugo.io/getting-started/quick-start for help installing Hugo."
exit 1
fi
if [[ -z "$(which node)" ]]; then
2022-04-08 08:20:14 -07:00
echo "This project requires Node.js."
2021-04-06 07:36:14 -07:00
echo "See the README for the complete list of prerequisities and "
echo "https://nodejs.org/en/download for help installing Node.js."
exit 1
fi
if [[ -z "$(which yarn)" ]]; then
2022-04-08 08:20:14 -07:00
echo "This project requires the Yarn package manager."
2021-04-06 07:36:14 -07:00
echo "See the README for the complete list of prerequisities and "
echo "https://yarnpkg.com/getting-started/install for help installing Yarn."
exit 1
fi
echo "Installing Node.js modules..."
yarn install
yarn --cwd ./themes/default/theme install
yarn --cwd ./themes/default/theme/stencil install