Last active
March 9, 2017 03:19
-
-
Save yesmeck/8b55bb8788e9bfe5a92569eff33cf7b6 to your computer and use it in GitHub Desktop.
Fix your js project!
This file contains 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/sh | |
COLOR_GREEN='\033[0;32m' | |
echo "${COLOR_GREEN}Remove node_modules." | |
rm -rf node_modules | |
echo "${COLOR_GREEN}Remove yarn.lock." | |
rm -f yarn.lock | |
if command -v ayarn > /dev/null 2>&1; then | |
echo "${COLOR_GREEN}Install node_modules use ayarn." | |
ayarn | |
else | |
echo "${COLOR_GREEN}Install node_modules use yarn." | |
yarn | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment