/rn-game-over

React Native kill me. Give me an other life.

Primary LanguageJavaScript

rn-game-over

React Native kill me. Give me an other life.

Have you ever been in this situation when changes that you made in your code, are not considered by RN in your simulator 🧐

You tried everything : delete RN cache, ios build, android build...

It generally works but you don't really know why and which command was the winner.

This package is just a script that run a set of commands for you 🤩 and save your time 🕔

Usage

help

Install

With npm, run

$ npm install -g rn-game-over

Dependency manager

This script has command support for both npm and yarn.

Options descriptions

  • -o:

    • rm -rf ~/Library/Developer/Xcode/DerivedData/*
    • rm -rf ~/Library/Developer/Xcode/Archives/*
    • rm -rf ./ios/build
  • -a:

    • ./android/gradlew clean
    • rm -rf ./android/build
    • rm -rf ./android/app/build
    • rm -rf android/.gradle
    • rm ./android/.idea/modules.xml
    • rm ./android/**/*.iml
  • -j:

    • watchman watch-del-all
    • rm -rf $TMPDIR/haste-map-react-native-packager-*
    • rm -rf $TMPDIR/metro-bundler-cache-*
    • <DEPENDENCY_MANAGER> cache clean
    • rm -rf ~/.rncache
  • -p:

    • rm -rf ./ios/Pods
    • bundle exec pod install
  • -m:

    • rm -rf ./node_modules
    • <DEPENDENCY_MANAGER> install
  • -c:

    • <DEPENDENCY_MANAGER> jest --clearCache

Contributors

Made with contrib.rocks.

License

MIT