CLI script that clears Watchman, removes node_modules and cleans cache and other goodies
$ npm install -g react-native-surrender
# OR
$ yarn global add react-native-surrender
$ 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
Contributions are welcome!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Or open up a issue.
Licensed under the MIT License.