项目作者: tiaanduplessis

项目描述 :
CLI script that clears Watchman, removes node_modules and cleans cache using npm or yarn
高级语言: JavaScript
项目地址: git://github.com/tiaanduplessis/react-native-surrender.git
创建时间: 2017-10-30T10:43:21Z
项目社区:https://github.com/tiaanduplessis/react-native-surrender

开源协议:MIT License

下载


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

    1. $ npm install -g react-native-surrender
    2. # OR
    3. $ yarn global add react-native-surrender

    Usage

    1. $ surrender

    Is equivalent to running

    1. 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:

    1. $ surrender --yarn
    1. $ surrender --pnpm

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

    1. $ surrender --android

    Or start the packager

    1. $ surrender --start

    Or clear and install pods

    1. $ 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.