bootstrap 406 B

123456789101112131415161718
  1. #!/usr/bin/env bash
  2. set -e
  3. cd "$(dirname "$0")/.."
  4. if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ]; then
  5. brew bundle check >/dev/null 2>&1 || {
  6. echo "==> Installing Homebrew dependencies…"
  7. brew bundle
  8. }
  9. fi
  10. echo "==> Installing Node dependencies…"
  11. PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
  12. $PACKAGE_MANAGER install