Skip to content

codybrouwers/react-native-clean-project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Native Clean Project

Cleans your React Native project by purging caches and modules, and reinstalling them again.

Install

yarn add -D react-native-clean-project

Run

./node_modules/.bin/react-native-clean-project

Content

This is a combination of the commands suggested in the React Native documentation plus others. They are:

  1. watchman watch-del-all
  2. rm -rf node_modules
  3. rm -rf $TMPDIR/react-*
  4. yarn cache clean
  5. brew update
  6. brew upgrade
  7. yarn

Tip

Add to package.json "scripts": { ... "purge": "./node_modules/.bin/react-native-clean-project", ... },

PR's welcome

About

Automating the cleaning of a React Native Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%