From 0ead8c183849562f5d0bcac6c94b3ba5ae47de42 Mon Sep 17 00:00:00 2001 From: Ashley Felton Date: Tue, 24 Dec 2024 09:32:05 +0800 Subject: [PATCH] Update gitignore, remove files related to dev environment. --- .editorconfig | 17 -------------- .gitattributes | 64 -------------------------------------------------- .gitignore | 9 ++++++- 3 files changed, 8 insertions(+), 82 deletions(-) delete mode 100644 .editorconfig delete mode 100644 .gitattributes diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 686c443..0000000 --- a/.editorconfig +++ /dev/null @@ -1,17 +0,0 @@ -# Drupal editor configuration normalization -# @see http://editorconfig.org/ - -# This is the top-most .editorconfig file; do not search in parent directories. -root = true - -# All files. -[*] -end_of_line = LF -indent_style = space -indent_size = 2 -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[composer.{json,lock}] -indent_size = 4 diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index e7b792f..0000000 --- a/.gitattributes +++ /dev/null @@ -1,64 +0,0 @@ -# Drupal git normalization -# @see https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html -# @see https://www.drupal.org/node/1542048 - -# Normally these settings would be done with macro attributes for improved -# readability and easier maintenance. However macros can only be defined at the -# repository root directory. Drupal avoids making any assumptions about where it -# is installed. - -# Define text file attributes. -# - Treat them as text. -# - Ensure no CRLF line-endings, neither on checkout nor on checkin. -# - Detect whitespace errors. -# - Exposed by default in `git diff --color` on the CLI. -# - Validate with `git diff --check`. -# - Deny applying with `git apply --whitespace=error-all`. -# - Fix automatically with `git apply --whitespace=fix`. - -*.config text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.css text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.dist text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.engine text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.html text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=html -*.inc text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.install text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.js text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.json text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.lock text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.map text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.md text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.module text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.po text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.profile text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.script text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.sh text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.sql text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.svg text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.theme text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 diff=php linguist-language=php -*.twig text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.txt text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.xml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 -*.yml text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 - -# PHPStan's baseline uses tabs instead of spaces. -core/.phpstan-baseline.php text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tabwidth=2 diff=php linguist-language=php - -# Define binary file attributes. -# - Do not treat them as text. -# - Include binary diff in patches instead of "binary files differ." -*.eot -text diff -*.exe -text diff -*.gif -text diff -*.gz -text diff -*.ico -text diff -*.jpeg -text diff -*.jpg -text diff -*.otf -text diff -*.phar -text diff -*.png -text diff -*.svgz -text diff -*.ttf -text diff -*.woff -text diff -*.woff2 -text diff diff --git a/.gitignore b/.gitignore index 06298b5..a0c45ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,9 @@ .env* +.editorconfig +.gitattributes +.dccache +.DS_Store +.vscode *.sql # Ignore dependencies that are managed with Composer. @@ -15,8 +20,10 @@ web/sites/*/services*.yml web/sites/*/files web/sites/*/private -# Ignore installed modules that aren't custom ones. +# Ignore contributed modules and themes. web/modules/contrib +web/profiles/contrib +web/themes/contrib # Ignore files that Drupal manages. web/core/