Adds a handy script to clear builds/cache/etc

This commit is contained in:
Sofiya Tepikin
2020-02-02 10:31:20 +01:00
parent 580f1e79ba
commit e52736f8a1
2 changed files with 27 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
echo "rm -rf ios/build..."
rm -rf ios/build
echo "rm -rf android/app/build..."
rm -rf android/app/build
echo "Removed all Xcode derived data..."
rm -rf ~/Library/Developer/Xcode/DerivedData
echo "watchman watch-del-all..."
watchman watch-del-all
echo "rm -rf node_modules..."
rm -rf node_modules
echo "npm install..."
npm install
echo "rm -rf $TMPDIR/react-*..."
rm -rf $TMPDIR/react-*
echo "rm -rf $TMPDIR/haste-map-react-native-packager-*..."
rm -rf $TMPDIR/haste-map-react-native-packager-*