Skip to content

Commit 0deca4c

Browse files
jrfnlgrogy
authored andcommitted
Add a .gitattributes file
This is the same PR as previously pulled in PR JakubOnderka/PHP-Parallel-Lint 144 This makes the release zips used by Packagist smaller as it doesn't ship the test or config files which end-users shouldn't need anyway. Fixes 11
1 parent 0ad7bb9 commit 0deca4c

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.gitattributes

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
/.travis.yml export-ignore
11+
/appveyor.yml export-ignore
12+
/box.json export-ignore
13+
/phpcs.xml.dist export-ignore
14+
/phpcs-ruleset.xml export-ignore
15+
/tests export-ignore
16+
17+
#
18+
# Auto detect text files and perform LF normalization
19+
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
20+
#
21+
* text=auto
22+
23+
#
24+
# The above will handle all files NOT found below
25+
#
26+
*.md text
27+
*.php text

0 commit comments

Comments
 (0)