Created
December 17, 2017 13:38
-
-
Save kenmazaika/1512d662bfae09379a75e8307525f55b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Please be patient while we set up your development environment..." | |
echo "Installing NVM..." | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash &> /dev/null | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
echo "Installing Node and NPM..." | |
if hash node 2>/dev/null; then | |
nvm install node --reinstall-packages-from=node &> /dev/null | |
else | |
nvm install node &> /dev/null | |
fi | |
command -v yarn >/dev/null 2>&1 || { | |
echo "Installing Yarn..." | |
npm install yarn -g &> /dev/null | |
} | |
echo "----------------------------------------" | |
echo " _____ _ _ " | |
echo " | ___(_)_ __ ___| |__ ___ ___ ___ " | |
echo " | |_ | | '__/ _ \ '_ \ / _ \/ __|/ _ \\" | |
echo " | _| | | | | __/ | | | (_) \__ \ __/" | |
echo " |_| |_|_| \___|_| |_|\___/|___/\___|" | |
echo "----------------------------------------" | |
echo "DONE, Your development environment is setup!" | |
echo "Open a new terminal to use development environment." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment