2024-04-30 11:36:38 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/.."
|
|
|
|
|
|
2025-09-19 17:41:20 +00:00
|
|
|
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
|
2024-04-30 23:59:44 -04:00
|
|
|
brew bundle check >/dev/null 2>&1 || {
|
2025-09-19 17:41:20 +00:00
|
|
|
echo -n "==> Install Homebrew dependencies? (y/N): "
|
|
|
|
|
read -r response
|
|
|
|
|
case "$response" in
|
|
|
|
|
[yY][eE][sS]|[yY])
|
|
|
|
|
brew bundle
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
echo
|
2024-04-30 23:59:44 -04:00
|
|
|
}
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
echo "==> Installing Node dependencies…"
|
|
|
|
|
|
2024-04-30 11:36:38 -04:00
|
|
|
PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
|
|
|
|
|
|
|
|
|
|
$PACKAGE_MANAGER install
|
2024-08-29 18:16:24 +02:00
|
|
|
|
|
|
|
|
cd "$(dirname "$0")/../examples"
|
2025-08-21 16:57:47 +00:00
|
|
|
$PACKAGE_MANAGER install
|