add yarn
This commit is contained in:
parent
1a41b29bfb
commit
49d19e6cdb
10
setup.bash
10
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 ""
|
||||
|
|
Loading…
Reference in New Issue