Prevent unnecessary files from distribution (#92)

Use .gitattributes to tell git what to ignore during exports.
This will prevent GitHub from adding those files to an archive.

Composer will use the GitHub archive as distribution while downloading.

This prevents none necessary files on production systems. This also
reduces file size of archive and should save disk space and other
resources.
This commit is contained in:
Daniel Siepmann 2022-09-21 13:13:39 +02:00 committed by GitHub
parent 50300d5cb2
commit 208928e0e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 47 additions and 1 deletions

11
.gitattributes vendored Normal file
View file

@ -0,0 +1,11 @@
Tests export-ignore
.github export-ignore
.gitattributes export-ignore
.gitignore export-ignore
dependency-checker.json export-ignore
ecs.php export-ignore
phpcs.xml.dist export-ignore
phpstan.neon export-ignore
phpunit.xml.dist export-ignore

View file

@ -0,0 +1,35 @@
1.4.0
=====
Breaking
--------
Nothing
Features
--------
Nothing
Fixes
-----
Nothing
Tasks
-----
* Prevent unnecessary files from distribution
Use ``.gitattributes`` to tell git what to ignore during exports.
This will prevent GitHub from adding those files to an archive.
Composer will use the GitHub archive as distribution while downloading.
This prevents none necessary files on production systems.
This also reduces file size of archive and should save disk space and other resources.
Deprecation
-----------
Nothing

View file

@ -11,7 +11,7 @@ $EM_CONF[$_EXTKEY] = [
'author' => 'Daniel Siepmann', 'author' => 'Daniel Siepmann',
'author_email' => 'coding@daniel-siepmann.de', 'author_email' => 'coding@daniel-siepmann.de',
'author_company' => '', 'author_company' => '',
'version' => '1.3.0', 'version' => '1.4.0',
'constraints' => [ 'constraints' => [
'depends' => [ 'depends' => [
'core' => '', 'core' => '',