Merge "Support brew for installing the js tools"

This commit is contained in:
Zuul 2018-03-06 22:31:38 +00:00 committed by Gerrit Code Review
commit f703cc762c
1 changed files with 5 additions and 1 deletions

View File

@ -28,8 +28,12 @@ if type apt-get; then
sudo DEBIAN_FRONTEND=noninteractive \
apt-get -q --option "Dpkg::Options::=--force-confold" --assume-yes \
install nodejs yarn
else
elif type yum; then
sudo curl https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
sudo $(dirname $0)/install-js-repos-rpm.sh
sudo yum -y install nodejs yarn
elif type brew; then
brew install nodejs yarn
else
echo "Unsupported platform"
fi