Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 428eaee

Browse files
[#678] Updated .gitignore configs.
1 parent e7d5c58 commit 428eaee

File tree

3 files changed

+38
-10
lines changed

3 files changed

+38
-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: 16 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,22 @@
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
24+
25+
# Manage .gitattributes with Drupal scaffold for cross-platform compatibility.
26+
# Remove the line below and commit the file for more granular control.
27+
/.gitattributes
28+
29+
# Manage all .gitignore files with Drupal scaffold.
30+
# Remove the line below and commit the files for more granular control.
31+
**/.gitignore

‎composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@
6363
"extra": {
6464
"composer-exit-on-patch-failure": true,
6565
"drupal-scaffold": {
66+
"file-mapping": {
67+
"[project-root]/.gitignore": false,
68+
"[web-root]/INSTALL.txt": false,
69+
"[web-root]/README.txt": false
70+
},
6671
"locations": {
6772
"web-root": "web/"
6873
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /