Skip to content

Commit

Permalink
[#678] Updated .gitignore configs.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSkrypnyk committed Jul 2, 2024
1 parent 265c3b1 commit 00e033e
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 10 deletions.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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
18 changes: 8 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Ignore directories generated by Composer
# To ignore OS temporary files use global .gitignore
# https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer

# Ignore directories generated by Composer.
/drush/contrib/
/vendor/
/web/core/
Expand All @@ -7,19 +10,14 @@
/web/profiles/contrib/
/web/libraries/

# Ignore sensitive information
# Ignore sensitive information.
/web/sites/*/settings.php
/web/sites/*/settings.local.php

# Ignore Drupal's file directory
# Ignore Drupal's file directory.
/web/sites/*/files/

# Ignore SimpleTest multi-site environment
# Ignore SimpleTest multi-site environment.
/web/sites/simpletest

# Ignore files generated by common IDEs
/.idea/
/.vscode/

# Ignore .env files as they are personal
# Ignore .env files as they could contain sensitive information.
/.env
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,13 @@
"extra": {
"composer-exit-on-patch-failure": true,
"drupal-scaffold": {
"file-mapping": {
"[project-root]/.gitattributes": false,
"[project-root]/.gitignore": false,
"[web-root]/INSTALL.txt": false,
"[web-root]/README.txt": false,
"[web-root]/example.gitignore": false
},
"locations": {
"web-root": "web/"
}
Expand Down

0 comments on commit 00e033e

Please sign in to comment.