This file contains 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
# Clean a react-native project | |
# usage: react-native-clean | |
# or: `react-native-clean deep` | |
# `deep` arg will clean yarn cache | |
function react-native-clean() { | |
echo "removing node modules..." | |
rm -rf node_modules | |
echo "clearing tmpdirs..." | |
rm -rf $TMPDIR/react-* | |
rm -rf $TMPDIR/npm-* |