How can I clean my react-native project to back it up?

前端 未结 1 1173
萌比男神i
萌比男神i 2020-12-21 19:55

I\'m developing a mobile app using React-Native, and as I\'m the only developer of it, I don\'t want to use a versioning tool like git, I don\'t want to host it on the cloud

1条回答
  •  执念已碎
    2020-12-21 20:24

    To clean

    Clean deriveddata with xcode project

    cd ios
    xcodebuild clean
    

    Clean ios build folder

    rm -rf ios/build
    

    Clean ios pods

    rm -rf ios/Pods
    

    Clean android studio

    cd android
    ./gradlew clean
    

    Clean android build folders

    rm -rf android/build
    rm -rf android/app/build
    

    Clean gradle cache

    rm -rf android/.gradle
    

    Clean node modules

    rm -rf node_modules
    

    Clean watchman cache

    watchman watch-del-all
    

    Clean npm cache

    npm cache clean
    

    You can now archive everything!

    To use a backup

    Install back package.json's npm modules

    npm install
    

    Install back iOS Pods

    cd ios/
    pod install
    

    0 讨论(0)
提交回复
热议问题