Skip to content
CLI script that clears Watchman, removes node_modules and cleans cache using npm or yarn
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
commands
.editorconfig
.gitattributes
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json
yarn.lock

README.md

react-native-surrender

CLI script that clears Watchman, removes node_modules and cleans cache and other goodies


Table of Contents

Table of Contents
  • Install
  • Usage
  • Contribute
  • License
  • Install

    $ npm install -g react-native-surrender
    # OR
    $ yarn global add react-native-surrender

    Usage

    $ surrender

    Is equivalent to running

    watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules && npm install && npm cache clean --force
    

    in the current directory.

    Optionally you can use yarn or pnpm as the packager:

    $ surrender --yarn
    $ surrender --pnpm 

    Run gradlew clean and remove build files in the android directory:

    $ surrender --android

    Or start the packager

    $ surrender --start

    Or clear and install pods

    $ surrender --pods

    Contributing

    Contributions are welcome!

    1. Fork it.
    2. Create your feature branch: git checkout -b my-new-feature
    3. Commit your changes: git commit -am 'Add some feature'
    4. Push to the branch: git push origin my-new-feature
    5. Submit a pull request :D

    Or open up a issue.

    License

    Licensed under the MIT License.

    You can’t perform that action at this time.