From 49d19e6cdb01cd62da8483252e5d83831308ebdb Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 16 May 2017 15:17:28 -0600 Subject: [PATCH] add yarn --- setup.bash | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/setup.bash b/setup.bash index 36cf0e8..9ae6dcb 100644 --- a/setup.bash +++ b/setup.bash @@ -282,10 +282,16 @@ if [ -n "${NODEJS_VER}" ]; then bash "/tmp/${INSTALL_FILE}" "${NODEJS_VER}" fi +# yarn +if [ -z "$(type -p yarn)" ]; then + echo "installing yarn..." + npm install --silent yarn -g > /dev/null +fi + # jshint -if [ -z "$(which jshint | grep jshint)" ]; then +if [ -z "$(type -p jshint)" ]; then echo "installing jshint..." - npm install --silent jshint -g > /dev/null + yarn install --silent jshint -g > /dev/null fi echo ""