Created
May 8, 2017 17:07
-
-
Save j-wang/688b27fb396a14b6c14f25bf0cb72073 to your computer and use it in GitHub Desktop.
A little script to automate clearing node modules and packager cache for React Native.
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
#!/bin/bash | |
echo "Starting clearing watchman..." | |
watchman watch-del-all | |
echo "Removing and reinstall node modules" | |
rm -rf node_modules && npm install | |
echo "Clearing packager cache..." | |
rm -fr $TMPDIR/react-* | |
echo "Done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment