Skip to content

Commit 00e033e

Browse files
committed
[#678] Updated .gitignore configs.
1 parent 265c3b1 commit 00e033e

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Drupal editor configuration normalization
2+
# @see http://editorconfig.org/
3+
4+
# This is the top-most .editorconfig file; do not search in parent directories.
5+
root = true
6+
7+
# All files.
8+
[*]
9+
end_of_line = LF
10+
indent_style = space
11+
indent_size = 2
12+
charset = utf-8
13+
trim_trailing_whitespace = true
14+
insert_final_newline = true
15+
16+
[composer.{json,lock}]
17+
indent_size = 4

.gitignore

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Ignore directories generated by Composer
1+
# To ignore OS temporary files use global .gitignore
2+
# https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer
3+
4+
# Ignore directories generated by Composer.
25
/drush/contrib/
36
/vendor/
47
/web/core/
@@ -7,19 +10,14 @@
710
/web/profiles/contrib/
811
/web/libraries/
912

10-
# Ignore sensitive information
13+
# Ignore sensitive information.
1114
/web/sites/*/settings.php
12-
/web/sites/*/settings.local.php
1315

14-
# Ignore Drupal's file directory
16+
# Ignore Drupal's file directory.
1517
/web/sites/*/files/
1618

17-
# Ignore SimpleTest multi-site environment
19+
# Ignore SimpleTest multi-site environment.
1820
/web/sites/simpletest
1921

20-
# Ignore files generated by common IDEs
21-
/.idea/
22-
/.vscode/
23-
24-
# Ignore .env files as they are personal
22+
# Ignore .env files as they could contain sensitive information.
2523
/.env

composer.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@
6363
"extra": {
6464
"composer-exit-on-patch-failure": true,
6565
"drupal-scaffold": {
66+
"file-mapping": {
67+
"[project-root]/.gitattributes": false,
68+
"[project-root]/.gitignore": false,
69+
"[web-root]/INSTALL.txt": false,
70+
"[web-root]/README.txt": false,
71+
"[web-root]/example.gitignore": false
72+
},
6673
"locations": {
6774
"web-root": "web/"
6875
}

0 commit comments

Comments
 (0)