You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
echo "Installing node modules into www..."
|
|
|
|
cd www
|
|
|
|
if type "yarn" > /dev/null; then
|
|
yarn install
|
|
exit 0
|
|
fi
|
|
|
|
# If Yarn isn't installed, use npm
|
|
echo "Warning: using npm install instead of the preferred yarn install"
|
|
echo "Consider installing Yarn"
|
|
npm install |