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
+2 -1
View File
@@ -20,7 +20,8 @@
"commit-release": "node ./tools/bin/commit-release.js",
"tag-release": "node ./tools/bin/tag-release.js",
"update-changelog": "node ./tools/bin/update-changelog.js",
"release": "node ./tools/release-wizard.js"
"release": "node ./tools/release-wizard.js",
"clear": ". scripts/Clear.sh"
},
"dependencies": {
"@ptomasroos/react-native-multi-slider": "^1.0.0",
+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-*