Last active
February 21, 2022 22:58
-
-
Save elliot-huffman/c92b3e52053906816074170ada511962 to your computer and use it in GitHub Desktop.
A gitignore for all of your Apache Cordova needs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cordova Global | |
plugins/ | |
# iOS Platform | |
platforms/ios/build/ | |
platforms/ios/www/ | |
platforms/ios/cordova/console.log | |
*.xcuserdatad | |
# Android Platform | |
platforms/android/.gradle | |
platforms/android/build | |
platforms/android/assets/www | |
platforms/android/local.properties | |
platforms/android/CordovaLib/build | |
platforms/android/CordovaLib/gen | |
platforms/android/CordovaLib/local.properties | |
# wp8 | |
platforms/wp8/bin | |
platforms/wp8/obj | |
platforms/wp8/www | |
platforms/wp8/.staging | |
platforms/wp8/*.suo | |
platforms/wp8/*.csproj.user | |
# Windows Universal App (Windows Platform) | |
platforms/windows/build | |
platforms/windows/www | |
platforms/windows/AppPackages | |
# Electron | |
platforms/electron/build | |
platforms/electron/build-res | |
platforms/electron/www | |
platforms/electron/config.xml | |
platforms/electron/electron.json | |
# Browser | |
platforms/browser/www | |
# res | |
resources/signing | |
# Node JS + TS | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* | |
pids | |
*.pid | |
*.seed | |
*.pid.lock | |
lib-cov | |
coverage | |
.nyc_output | |
.grunt | |
bower_components | |
.lock-wscript | |
build/Release | |
dist/ | |
node_modules/ | |
jspm_packages/ | |
typings/ | |
.npm | |
.eslintcache | |
.node_repl_history | |
*.tgz | |
.yarn-integrity | |
.env | |
.env.test | |
.cache | |
.next | |
.nuxt | |
.vuepress/dist | |
.serverless/ | |
.fusebox/ | |
.dynamodb/ | |
# Windows | |
ehthumbs.db | |
ehthumbs_vista.db | |
*.stackdump | |
[Dd]esktop.ini | |
$RECYCLE.BIN/ | |
*.lnk | |
# Linux | |
.fuse_hidden* | |
.directory | |
.Trash-* | |
.nfs* | |
# Mac | |
.DS_Store | |
.AppleDouble | |
.LSOverride | |
.DocumentRevisions-V100 | |
.fseventsd | |
.Spotlight-V100 | |
.TemporaryItems | |
.Trashes | |
.VolumeIcon.icns | |
.com.apple.timemachine.donotpresent | |
.AppleDB | |
.AppleDesktop | |
.apdisk |
Acording to latest docs, you should not be including platforms nor plugins folders on version control: https://cordova.apache.org/docs/en/latest/reference/cordova-cli/#version-control
So this gitignore can be greatly simplified
to exclude platforms folder makes no sense if you have modified/additional code imho
It is a hit or miss sorta thing. One is supposed to be able to have the config file inject your changes but that doesn't cover every scenerio. I think I am gonna keep it this way and I can have a fork that does the platform and plugins folder.
platforms/android/assets/www
Is no longer correct, it is underplatforms/android/app/src/main/assets/www
now
thx for the heads up, I'll get it updated shortly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Acording to latest docs, you should not be including platforms nor plugins folders on version control: https://cordova.apache.org/docs/en/latest/reference/cordova-cli/#version-control
So this gitignore can be greatly simplified