Issue
I would like to know how I could create the .gitignore file for Prestashop 1.7, to be able to carry a good code version, both for the development environment, as well as to have it ready in production.
Solution
This is the most complete Prestashop 1.7 .gitignore file I've seem. If it has any flaws they are related to the fact it has too many entries, but that is not a problem :)
Source: https://gist.github.com/prestarocket/7870db5cbba8b841faf08563e11c0249
# Cache, temp and personal files
/.htaccess
*.log
npm-debug.log.*
.sass-cache/
/cache/*
download/*
/img/*
/log/*
/upload/*
vendor/*
docs/phpdoc-sf/
composer.lock
tests/Selenium/errorShots/
tests/Selenium/errorDumps/
/admin*/autoupgrade/*
/admin*/backups/*
/admin*/import/*
/admin*/import/*
!/admin*/import/.htaccess
!/admin*/import/index.php
themes/*/cache/*
# Config
config/settings.inc.php
config/settings.old.php
config/xml/*
config/themes/*
!config/xml/themes/default.xml
tests/Selenium/settings.js
themes/*/config/settings_*.json
app/config/parameters.old.yml
app/config/config.php
# Themes, modules and overrides
!modules/*
modules/config_*.xml
modules/ps_imageslider/images/*
!modules/ps_imageslider/images/index.php
modules/ps_banner/img/*
!modules/ps_banner/img/index.php
!override/*
/themes/StarterTheme
# Vendors and dependencies
bower_components/
node_modules/
composer.phar
php-cs-fixer
.grunt/*
# Translations and emails templates
translations/*
mails/*
!mails/fr/
themes/default-bootstrap/lang/*
themes/default-bootstrap/modules/*/translations/*.php
themes/default-bootstrap/mails/*
!themes/default-bootstrap/mails/fr/
themes/default-bootstrap/modules/*/mails/*
!themes/default-bootstrap/modules/*/mails/fr
# MISC
*sitemap.xml
/robots.txt
# Symfony
/app/bootstrap.php.cache
/app/cache/*
!app/cache/.gitkeep
/app/Resources/translations/*
!/app/Resources/translations/default
/app/test/cache/*
!app/test/cache/.gitkeep
/app/config/parameters.yml
/app/config/parameters.php
/app/logs/*
!app/logs/.gitkeep
/app/phpunit.xml
/bin/
/web/bundles/
/web/css/
/web/js/
# Created by https://www.gitignore.io/api/linux,osx,windows,sublimetext,phpstorm
### Linux ###
*~
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
### OSX ###
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Windows ###
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
### SublimeText ###
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# workspace files are user-specific
*.sublime-workspace
# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project
# sftp configuration file
sftp-config.json
### PhpStorm ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
*.iml
## Directory-based project format:
.idea/
## File-based project format:
*.ipr
*.iws
## Plugin-specific files:
# IntelliJ
/out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
### NetBeans ###
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
.nb-gradle/
### Eclipse ###
.buildpath
.project
.settings/
.externalToolBuilders/
Hope this helps.
Answered By - António Pinto Answer Checked By - Terry (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.