From 208928e0e9b0270868a17ee91aef8c7df332b1a4 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Wed, 21 Sep 2022 13:13:39 +0200 Subject: [PATCH] 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. --- .gitattributes | 11 ++++++++++ Documentation/Changelog/1.4.0.rst | 35 +++++++++++++++++++++++++++++++ ext_emconf.php | 2 +- 3 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 Documentation/Changelog/1.4.0.rst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..629c47d --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/Documentation/Changelog/1.4.0.rst b/Documentation/Changelog/1.4.0.rst new file mode 100644 index 0000000..90e2dd3 --- /dev/null +++ b/Documentation/Changelog/1.4.0.rst @@ -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 diff --git a/ext_emconf.php b/ext_emconf.php index 500a6e7..eb17779 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -11,7 +11,7 @@ $EM_CONF[$_EXTKEY] = [ 'author' => 'Daniel Siepmann', 'author_email' => 'coding@daniel-siepmann.de', 'author_company' => '', - 'version' => '1.3.0', + 'version' => '1.4.0', 'constraints' => [ 'depends' => [ 'core' => '',