Created
October 11, 2015 18:23
-
-
Save ckaklamanos/448984aadd5897e2a8fc to your computer and use it in GitHub Desktop.
CS Cart .gitignore for Addon development
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
# ----------------------------------------------------------------- | |
# .gitignore for CS Cart theme and addon development | |
# | |
# By default all files are ignored. You'll need to whitelist | |
# any addons, folders, files you want to include in the repo. | |
# | |
# To ignore uncommitted changes in a file that is already tracked, use | |
# git update-index --assume-unchanged | |
# | |
# To stop tracking a file that is currently tracked, use | |
# git rm --cached | |
# | |
# ----------------------------------------------------------------- | |
# ignore everything in the root folder | |
/* | |
# Addon development ----------------------------------------------------------------- | |
# Add app,js,var directory | |
!app/ | |
!js/ | |
!var/ | |
# ignore everything in "app" directory | |
# except addons directory | |
# ignore all addons, except the ones that are whitelisted in the end of this file | |
app/* | |
!app/addons/ | |
app/addons/* | |
# ignore everything in "js" directory | |
# except addons directory | |
# ignore all addons, except the ones that are whitelisted in the end of this file | |
js/* | |
!js/addons/ | |
js/addons/* | |
# ignore everything in "var" directory | |
var/* | |
# Addon language files | |
# include langs directory | |
# ignore all langs, except en and el | |
# ignore everything inside en and el, except addons directory | |
# ignore everything inside en and el addons directory, except po files listed in the end of the file | |
!var/langs/ | |
var/langs/* | |
!var/langs/en/ | |
!var/langs/el/ | |
var/langs/en/* | |
var/langs/el/* | |
!var/langs/en/addons | |
!var/langs/el/addons | |
var/langs/en/addons/* | |
var/langs/el/addons/* | |
# Addon frontend files | |
# include themes_repository directory | |
!var/themes_repository/ | |
var/themes_repository/* | |
!var/themes_repository/responsive/ | |
var/themes_repository/responsive/* | |
# addon css | |
!var/themes_repository/responsive/css | |
var/themes_repository/responsive/css/* | |
!var/themes_repository/responsive/css/addons | |
var/themes_repository/responsive/css/addons/* | |
# addon mail | |
!var/themes_repository/responsive/mail | |
var/themes_repository/responsive/mail/* | |
!var/themes_repository/responsive/mail/addons | |
var/themes_repository/responsive/mail/addons/* | |
# addon media | |
!var/themes_repository/responsive/media | |
var/themes_repository/responsive/media/* | |
!var/themes_repository/responsive/media/addons | |
var/themes_repository/responsive/media/addons/* | |
# addon templates | |
!var/themes_repository/responsive/templates | |
var/themes_repository/responsive/templates/* | |
!var/themes_repository/responsive/templates/addons | |
var/themes_repository/responsive/templates/addons/* | |
# Track the following addons | |
# Addon addon_name | |
# basic files | |
!app/addons/addon_name/ | |
!js/addons/addon_name/ | |
# language files | |
!var/langs/en/addons/addon_name.po | |
!var/langs/el/addons/addon_name.po | |
# css | |
!var/themes_repository/responsive/css/addons/addon_name/ | |
!var/themes_repository/responsive/mail/addons/addon_name/ | |
# media | |
!var/themes_repository/responsive/media/addons/addon_name/ | |
# templates | |
!var/themes_repository/responsive/templates/addons/addon_name/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment