Skip to content

Commit 88c8d81

Browse files
committed
Add .gitattributes file
... to only include relevant (non-dev) files in the downloadable packages.
1 parent 5e5d1b7 commit 88c8d81

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.gitattributes

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# Exclude these files from release archives.
3+
# This will also make them unavailable when using Composer with `--prefer-dist`.
4+
# If you develop for this repo using Composer, use `--prefer-source`.
5+
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production
6+
# https://blog.madewithlove.be/post/gitattributes/
7+
#
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/.github/ export-ignore
11+
/phpcs.xml.dist export-ignore
12+
/phpunit.xml.dist export-ignore
13+
/tests/ export-ignore
14+
15+
#
16+
# Auto detect text files and perform LF normalization
17+
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
18+
#
19+
* text=auto
20+
21+
#
22+
# The above will handle all files NOT found below
23+
#
24+
*.md text
25+
*.php text
26+
*.inc text

0 commit comments

Comments
 (0)