From 18447f6b45a3f65e7f4d5c56d7592c6e40613b57 Mon Sep 17 00:00:00 2001 From: Marcus Schwemer Date: Wed, 15 Oct 2025 10:02:15 +0200 Subject: [PATCH] [TASK] Improve packaging for release to TER and GH Related: in2code-de/powermail#1302 --- .gitattributes | 12 ++-- .github/workflows/ter-release.yml | 1 + .project/tailor/excludeFromPackaging.php | 82 ++++++++++++++++++++++++ 3 files changed, 91 insertions(+), 4 deletions(-) create mode 100644 .project/tailor/excludeFromPackaging.php diff --git a/.gitattributes b/.gitattributes index 2bb7e66f4..dd13563c1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,11 +1,15 @@ +/.crowdin.yaml export-ignore +/.ddev export-ignore +/.editorconfig export-ignore /.gitattributes export-ignore +/.github export-ignore /.gitignore export-ignore /.project export-ignore +/crowdin.yaml export-ignore +/phpunit.xml.dist export-ignore +/rector.php export-ignore +/Resources/Private/Build export-ignore /Tests export-ignore -/Resources/Private/Sass/ -/Resources/Private/gulpfile.js -/Resources/Private/package.json -/readme.md # Enforce checkout with linux lf consistent over all plattforms *.html text eol=lf *.css text eol=lf diff --git a/.github/workflows/ter-release.yml b/.github/workflows/ter-release.yml index 408b35324..9a87fa3d3 100644 --- a/.github/workflows/ter-release.yml +++ b/.github/workflows/ter-release.yml @@ -19,6 +19,7 @@ jobs: TYPO3_API_TOKEN: ${{ secrets.TYPO3_API_TOKEN }} TYPO3_API_USERNAME: ${{ secrets.TYPO3_API_USERNAME }} TYPO3_API_PASSWORD: ${{ secrets.TYPO3_API_PASSWORD }} + TYPO3_EXCLUDE_FROM_PACKAGING: '.project/tailor/excludeFromPackaging.php' steps: - name: Checkout repository diff --git a/.project/tailor/excludeFromPackaging.php b/.project/tailor/excludeFromPackaging.php new file mode 100644 index 000000000..600238b49 --- /dev/null +++ b/.project/tailor/excludeFromPackaging.php @@ -0,0 +1,82 @@ + [ + '.build', + '.ddev', + '.git', + '.github', + '.gitlab', + '.gitlab-ci', + '.idea', + '.phive', + '.project', + 'bin', + 'build', + 'public', + 'tailor-version-artefact', + 'tailor-version-upload', + 'tests', + 'tools', + 'vendor', + 'Resources/Private/Build', + 'Tests', + ], + 'files' => [ + 'CODE_OF_CONDUCT.md', + 'DS_Store', + 'Dockerfile', + 'ExtensionBuilder.json', + 'Makefile', + 'bower.json', + 'codeception.yml', + 'composer.lock', + 'crowdin.yaml', + 'docker-compose.yml', + 'dynamicReturnTypeMeta.json', + 'editorconfig', + 'env', + 'eslintignore', + 'eslintrc.json', + 'gitattributes', + 'gitignore', + 'gitlab-ci.yml', + 'gitmodules', + 'gitreview', + 'package-lock.json', + 'package.json', + 'phive.xml', + 'php-cs-fixer.dist.php', + 'php-cs-fixer.php', + 'php_cs', + 'php_cs.php', + 'phpcs.xml', + 'phpcs.xml.dist', + 'phplint.yml', + 'phpstan-baseline.neon', + 'phpstan.neon', + 'phpstan.neon.dist', + 'phpstorm.meta.php', + 'phpunit.xml', + 'phpunit.xml.dist', + 'prettierrc.json', + 'rector.php', + 'scrutinizer.yml', + 'styleci.yml', + 'stylelint.config.js', + 'stylelintrc', + 'travis.yml', + 'tslint.yaml', + 'tslint.yml', + 'typoscript-lint.yaml', + 'typoscript-lint.yml', + 'typoscriptlint.yaml', + 'typoscriptlint.yml', + 'webpack.config.js', + 'webpack.mix.js', + 'yarn.lock', + ], +];