Created
March 1, 2020 14:39
-
-
Save prescindivel/98c01fa43c038400c97c89b668320eb7 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/sh | |
BLUE='\033[0;34m' | |
NC='\033[0m' | |
TMPDIR=/tmp | |
echo "${BLUE}==>1. Remove Watchman cache ${NC}" | |
watchman watch-del-all | |
echo "${BLUE}==>2. Remove cache and node_module${NC}" | |
rm -rf $TMPDIR/react-* && | |
rm -rf $TMPDIR/metro-bundler-cache-* && | |
rm -rf $TMPDIR/haste-map-* && | |
rm -rf node_modules/ && | |
yarn cache clean | |
echo "${BLUE}==>3. Re-install libraries${NC}" | |
yarn install && | |
react-native link | |
echo "${BLUE} Reset successful!${NC}" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment