Skip to content

Instantly share code, notes, and snippets.

@hugoaf
Created June 22, 2019 04:53
Show Gist options
  • Save hugoaf/754f801ce514d16f9733cdbf2e6573ea to your computer and use it in GitHub Desktop.
Save hugoaf/754f801ce514d16f9733cdbf2e6573ea to your computer and use it in GitHub Desktop.
A git ignore file for Joomla component development, including frontend, backend, media and template
#adding backend component
!/administrator/components/
/administrator/components/*
!/administrator/components/com_mycomponent/
!/administrator/components/com_mycomponent/*
#adding frontend component
!/components/
/components/*
!/components/com_mycomponent/
!/components/com_mycomponent/*
#adding the media files for component
!/media/
/media/*
!/media/com_mycomponent/
!/media/com_mycomponent/*
# adding just the template files requiered
!/templates/
/templates/*
!/templates/my_template/
/templates/my_template/*
!/templates/my_template/custom/
/templates/my_template/custom/*
!/templates/my_template/custom/scss/
!/templates/my_template/custom/scss/*
#ignore the rest of joomla
/.htaccess
/administrator/cache/*
/administrator/help/*
/administrator/includes/*
/administrator/language/
/administrator/language/overrides/*
/administrator/logs/*
/administrator/manifests/*
/administrator/modules/*
/administrator/templates/*
/administrator/index.php
/cache/*
/bin/*
/cli/*
/components/index.html
/images/*
/includes/*
/installation/*
/language/*
/language/index.html
/layouts/*
/layouts/index.html
/libraries/*
/media/index.html
/modules/*
/modules/index.html
/plugins/*
/plugins/index.html
/templates/index.html
/tmp/*
/configuration.php
/index.php
/joomla.xml
/*.txt
/*.htaccess
/robots.txt.dist
# Extra ignores
.DS_Store
.prettierrc
.vscode/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment