Skip to content
No description, website, or topics provided.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc
helpers
tasks
.gitignore
README.md
index.js
package.json
yarn.lock

README.md

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 ./android/.idea/modules.xml
    • rm ./android/**/*.iml
  • -j:

    • watchman watch-del-all
    • rm -rf /tmp/haste-map-react-native-packager-*
    • rm -rf /tmp/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

License

MIT

You can’t perform that action at this time.