I use Cordova 5.0.0 and i have the following project structure:
MyProject
- hooks
- platforms
- plugins
- resources
- www
- config.xml
>
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