Created
March 24, 2020 16:02
-
-
Save simistern/bb026e68877b6d49cb54e1740328159b 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
echo "Cleaning up node modules"; | |
rm -rf node_modules; | |
npm install; | |
echo "Clearning all temp directories"; | |
rm -rf $TMPDIR/react-native-packager-cache-*; | |
rm -rf $TMPDIR/metro-*; | |
rm -rf $TMPDIR/react-*; | |
rm -rf $TMPDIR/haste-*; | |
watchman watch-del-all; | |
echo "Cleaning up iOS folders" | |
cd ios; | |
rm -rf Pods; | |
rm -rf Podfile.lock; | |
rm -rf build; | |
pod install; | |
cd ..; | |
echo "cleanup android folder" | |
cd android; | |
rm -rf build; | |
rm -rf ~/Library/Developer/Xcode/DerrivedData | |
echo "PLEASE DELETE THE APP AND RESTART SIMULATOR after cache is reset"; | |
cd ..; | |
npm start -- --reset-cache; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment