Update Drupal.gitignore with upstream conventions: prefix /web for drupal code; remove deprecated simpletest directory; allow project composer.json|lock at root; add /vendor, composer, robo, drush and drupal scripts to root

This commit is contained in:
Luís Algarvio 2020-04-28 18:56:15 +01:00
parent 2a4de265d3
commit e448b41613
1 changed files with 50 additions and 37 deletions

View File

@ -1,49 +1,62 @@
# gitignore template for Drupal 8 projects # gitignore template for Drupal 8 projects
# #
# earlier versions of Drupal are tracked in `community/PHP/` # earlier versions of Drupal are tracked in `community/PHP/`
#
# follows official upstream conventions:
# https://www.drupal.org/docs/develop/using-composer
# Ignore configuration files that may contain sensitive information # Ignore configuration files that may contain sensitive information
/sites/*/*settings*.php /web/sites/*/*settings*.php
/sites/*/*services*.yml /web/sites/*/*services*.yml
# Ignore paths that may contain user-generated content # Ignore paths that may contain user-generated content
/sites/*/files /web/sites/*/files
/sites/*/public /web/sites/*/public
/sites/*/private /web/sites/*/private
/sites/*/files-public /web/sites/*/files-public
/sites/*/files-private /web/sites/*/files-private
# Ignore paths that may contain temporary files # Ignore paths that may contain temporary files
/sites/*/translations /web/sites/*/translations
/sites/*/tmp /web/sites/*/tmp
/sites/*/cache /web/sites/*/cache
# Ignore testing related files
/sites/simpletest
# Ignore drupal core (if not versioning drupal sources) # Ignore drupal core (if not versioning drupal sources)
/core /web/vendor
/web/core
/web/modules/README.txt
/web/profiles/README.txt
/web/sites/development.services.yml
/web/sites/example.settings.local.php
/web/sites/example.sites.php
/web/sites/README.txt
/web/themes/README.txt
/web/.csslintrc
/web/.editorconfig
/web/.eslintignore
/web/.eslintrc.json
/web/.gitattributes
/web/.htaccess
/web/.ht.router.php
/web/autoload.php
/web/composer.json
/web/composer.lock
/web/example.gitignore
/web/index.php
/web/INSTALL.txt
/web/LICENSE.txt
/web/README.txt
/web/robots.txt
/web/update.php
/web/web.config
# Ignore vendor dependencies and scripts
/vendor /vendor
/modules/README.txt /composer.phar
/profiles/README.txt /composer
/themes/README.txt /robo.phar
/sites/README.txt /robo
/sites/example.sites.php /drush.phar
/sites/example.settings.local.php /drush
/sites/development.services.yml /drupal.phar
/.csslintrc /drupal
/.editorconfig
/.eslintignore
/.eslintrc.json
/.gitattributes
/.ht.router.php
/.htaccess
/autoload.php
/example.gitignore
/index.php
/INSTALL.txt
/LICENSE.txt
/README.txt
/robots.txt
/update.php
/web.config