Skip to content

Commit 4ddba02

Browse files
ruudkjerowork
authored andcommitted
Add .gitattributes to slim distribution archives
Composer dist installs use the GitHub-generated archive, which otherwise ships tests, CI config, and tooling that consumers never need. Ignore everything by default and re-include only the runtime essentials (`src/`, `composer.json`, `LICENSE`) so dependents pull the smallest possible package.
1 parent 960bb5a commit 4ddba02

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore everything by default
2+
* export-ignore
3+
4+
# Include only these in distribution
5+
src/ -export-ignore
6+
src/** -export-ignore
7+
composer.json -export-ignore
8+
LICENSE -export-ignore

0 commit comments

Comments
 (0)