Skip to content

Instantly share code, notes, and snippets.

@edwinwong90
Created April 5, 2020 03:50
Show Gist options
  • Save edwinwong90/cc3a5ed7c39893aa11ca968a98c4f600 to your computer and use it in GitHub Desktop.
Save edwinwong90/cc3a5ed7c39893aa11ca968a98c4f600 to your computer and use it in GitHub Desktop.
React Native Super Clean up commands
#!/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