Cordova 5.0.0: Which files should I commit to git?

后端 未结 7 761
南方客
南方客 2021-01-30 02:47

I use Cordova 5.0.0 and i have the following project structure:

MyProject
    - hooks
    - platforms
    - plugins
    - resources
    - www
    - config.xml
         


        
7条回答
  •  遥遥无期
    2021-01-30 03:40

    I followed these steps:

    • create cordova project

    • add platforms

    • add plugins

    Before build project, I commit and push generated files. After I build project and check for new files generated. I got these to add in .gitignore:

    /platforms/android/gradlew.bat

    /platforms/android/build

    /platforms/android/gradle

    /platforms/android/libs

    /platforms/android/gradlew.bat

    /platforms/android/CordovaLib/build

    /platforms/android/.gradle

提交回复
热议问题