|
| 1 | +# Normalize line endings |
| 2 | +* text=auto eol=lf |
| 3 | + |
| 4 | +# PHP source code |
| 5 | +*.php text eol=lf |
| 6 | + |
| 7 | +# Documentation |
| 8 | +*.md text eol=lf |
| 9 | +*.txt text eol=lf |
| 10 | + |
| 11 | +# Exclude dev & config files from Composer/archives |
| 12 | +/.github export-ignore |
| 13 | +/.gitlab export-ignore |
| 14 | +/.idea export-ignore |
| 15 | +/tests export-ignore |
| 16 | +/node_modules export-ignore |
| 17 | +/vendor export-ignore |
| 18 | + |
| 19 | +# Exclude tooling configs |
| 20 | +/.editorconfig export-ignore |
| 21 | +/.gitattributes export-ignore |
| 22 | +/.gitignore export-ignore |
| 23 | +/.php-cs-fixer.php export-ignore |
| 24 | +/phpcs.xml.dist export-ignore |
| 25 | +/phpstan.neon.dist export-ignore |
| 26 | +/phpunit.xml.dist export-ignore |
| 27 | + |
| 28 | +# Exclude CI/CD and build files |
| 29 | +/.dockerignore export-ignore |
| 30 | +/.styleci.yml export-ignore |
| 31 | +/.scrutinizer.yml export-ignore |
| 32 | +/.travis.yml export-ignore |
| 33 | +/appveyor.yml export-ignore |
| 34 | +/Dockerfile export-ignore |
| 35 | +Makefile export-ignore |
| 36 | + |
| 37 | +# Exclude lock and package manager files |
| 38 | +/composer.lock export-ignore |
| 39 | +/package-lock.json export-ignore |
| 40 | +/yarn.lock export-ignore |
| 41 | +/pnpm-lock.yaml export-ignore |
| 42 | + |
| 43 | +# Keep only essential files in distribution |
| 44 | +# (Composer will still include LICENSE and README by default) |
| 45 | +LICENSE text eol=lf |
| 46 | +README.md text eol=lf |
| 47 | + |
| 48 | +# Improve diffs for readability |
| 49 | +*.md diff=markdown |
| 50 | +*.json diff=json |
| 51 | +*.yml diff=yaml |
| 52 | +*.yaml diff=yaml |
| 53 | +*.xml diff=xml |
| 54 | + |
| 55 | +# Prevent merge conflicts on lock files |
| 56 | +composer.lock merge=ours |
| 57 | +package-lock.json merge=ours |
| 58 | +yarn.lock merge=ours |
| 59 | +pnpm-lock.yaml merge=ours |
0 commit comments