Skip to content

Instantly share code, notes, and snippets.

@skizzo
Created September 28, 2017 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skizzo/8633169b4f1b0e781c83af4d52ec7249 to your computer and use it in GitHub Desktop.
Save skizzo/8633169b4f1b0e781c83af4d52ec7249 to your computer and use it in GitHub Desktop.
Shell script for cleaning a React Native project
watchman watch-del-all 1>/dev/null
rm -rf node_modules 1>/dev/null
rm -rf yarn.lock 1>/dev/null
rm -rf package-lock.json 1>/dev/null
rm -rf $TMPDIR/react-packager-* 1>/dev/null
rm -rf ios/build 1>/dev/null
npm cache clear --force -s 1>/dev/null
npm cache verify 1>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment