Created
April 5, 2020 03:50
-
-
Save edwinwong90/cc3a5ed7c39893aa11ca968a98c4f600 to your computer and use it in GitHub Desktop.
React Native Super Clean up commands
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 "Project Cleaning Begin" | |
echo "Cleaning React Cache" | |
rm -rf $TMPDIR/react-* | |
echo "Cleaning Metro Cache" | |
rm -rf $TMPDIR/metro-* | |
echo "Cleaning Watchman Cache" | |
watchman watch-del-all | |
echo "Cleaning Yarn Cache" | |
yarn cache clean | |
echo "Removing node_modules" | |
rm -rf node_modules | |
echo "Installing node_modules" | |
yarn install | |
echo "Upgrading Vettons iPay88 SDK" | |
yarn upgrade vettons-react-native-ipay88-sdk | |
echo "Upgrading VTUIKit" | |
yarn upgrade vtuikit | |
echo "Removing Existing Pods Folder" | |
rm -rf ios/Pods | |
echo "Installing New Pods" | |
cd ios && pod install && cd .. | |
echo "Cleaning Android Gradle" | |
cd android && ./gradlew clean && cd .. | |
echo "Yarn Refresh Complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment