cloudflare/cloudflare-typescript

Public

mirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
dff22c0d60c46292be06ba3061c6433db22d6b27

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

scripts/bootstrap

26lines · modeblame

dbae3674stainless-app[bot]2 years ago1#!/usr/bin/env bash
2
3set -e
4
5cd "$(dirname "$0")/.."
6
257ac1dcstainless-app[bot]9 months ago7if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
ce41a479stainless-app[bot]2 years ago8brew bundle check >/dev/null 2>&1 || {
257ac1dcstainless-app[bot]9 months ago9echo -n "==> Install Homebrew dependencies? (y/N): "
10read -r response
11case "$response" in
12[yY][eE][sS]|[yY])
13brew bundle
14;;
15*)
16;;
17esac
18echo
ce41a479stainless-app[bot]2 years ago19}
20fi
21
22echo "==> Installing Node dependencies…"
23
dbae3674stainless-app[bot]2 years ago24PACKAGE_MANAGER=$(command -v yarn >/dev/null 2>&1 && echo "yarn" || echo "npm")
25
26$PACKAGE_MANAGER install