From e46a1fa153b6df751d343091f1c539c012ea27ea Mon Sep 17 00:00:00 2001 From: Georg Ringer Date: Tue, 2 Jul 2024 13:53:04 +0200 Subject: [PATCH] [TASK] Followup --- .github/workflows/core12.yml | 2 +- Build/Scripts/runTests.sh | 4 ++-- Build/php-cs-fixer/php-cs-fixer.php | 2 +- composer.json | 29 ++++++++++++++++++++++++++++- ext_emconf.php | 12 ++++++------ 5 files changed, 38 insertions(+), 11 deletions(-) diff --git a/.github/workflows/core12.yml b/.github/workflows/core12.yml index 011ce8c..20a24c9 100644 --- a/.github/workflows/core12.yml +++ b/.github/workflows/core12.yml @@ -11,7 +11,7 @@ jobs: # rest matrix jobs be executed anyway. fail-fast: false matrix: - php: [ '8.1', '8.2' ] + php: [ '8.2', '8.3' ] composerInstall: [ 'composerInstallLowest', 'composerInstallHighest' ] steps: - name: Checkout diff --git a/Build/Scripts/runTests.sh b/Build/Scripts/runTests.sh index 9a4b580..e0845df 100755 --- a/Build/Scripts/runTests.sh +++ b/Build/Scripts/runTests.sh @@ -65,7 +65,7 @@ handleDbmsAndDriverOptions() { # Load help text into $HELP read -r -d '' HELP <=20.10 for xdebug break pointing to work reliably, and @@ -225,7 +225,7 @@ POSTGRES_VERSION="10" USED_XDEBUG_MODES="debug,develop" #@todo the $$ would add the current process id to the name, keeping as plan b #PROJECT_NAME="runTests-$(basename $(dirname $ROOT_DIR))-$(basename $ROOT_DIR)-$$" -PROJECT_NAME="runtestsfriendlycaptcha" +PROJECT_NAME="csv2xlf" PROJECT_NAME="${PROJECT_NAME//[[:blank:]]/}" echo $PROJECT_NAME diff --git a/Build/php-cs-fixer/php-cs-fixer.php b/Build/php-cs-fixer/php-cs-fixer.php index 15788ae..b03be97 100644 --- a/Build/php-cs-fixer/php-cs-fixer.php +++ b/Build/php-cs-fixer/php-cs-fixer.php @@ -2,7 +2,7 @@ $config = \TYPO3\CodingStandards\CsFixerConfig::create(); $config->setHeader( - 'This file is part of the "friendlycaptcha" Extension for TYPO3 CMS. + 'This file is part of the "csv2xlf" Extension for TYPO3 CMS. For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.', diff --git a/composer.json b/composer.json index 9181d74..e7be68b 100644 --- a/composer.json +++ b/composer.json @@ -13,6 +13,15 @@ "typo3/cms-core": "^12, ^13", "league/csv": "^9.16" }, + "require-dev": { + "typo3/cms-composer-installers": "^3.1.3 || 4.0.0-RC1 || ^5.0", + "typo3/testing-framework": "^7.0.1", + "typo3/cms-form": "^11.5.30 || ^12.4.5", + "phpunit/phpunit": "^9", + "typo3/coding-standards": "^0.5.3", + "friendsofphp/php-cs-fixer": "^3.51.0", + "webmozart/assert": "^1.11.0" + }, "autoload": { "psr-4": { "StudioMitte\\Csv2Xlf\\": "Classes" @@ -25,7 +34,25 @@ }, "extra": { "typo3/cms": { - "extension-key": "csv2xlf" + "extension-key": "csv2xlf", + "app-dir": ".Build", + "web-dir": ".Build/Web" + } + }, + "config": { + "vendor-dir": ".Build/vendor", + "bin-dir": ".Build/bin", + "allow-plugins": { + "typo3/class-alias-loader": true, + "typo3/cms-composer-installers": true, + "sbuerk/typo3-cmscomposerinstallers-testingframework-bridge": true } + }, + "scripts": { + "cs": "php ./.Build/bin/php-cs-fixer fix --dry-run -v --config ./Build/php-cs-fixer/php-cs-fixer.php ./", + "csfix": "php ./.Build/bin/php-cs-fixer fix -v --config ./Build/php-cs-fixer/php-cs-fixer.php ./", + "post-autoload-dump": [ + "TYPO3\\TestingFramework\\Composer\\ExtensionTestEnvironment::prepare" + ] } } diff --git a/ext_emconf.php b/ext_emconf.php index 67f64d9..4184162 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -1,21 +1,21 @@ 'Integration of Friendly Captcha', - 'description' => 'FriendlyCaptcha Integration for EXT:powermail and EXT:form and your custom implementation', - 'category' => 'plugin', + 'title' => 'Convert CSV to XLF', + 'description' => 'Provide command to convert given csv to a XLF file', + 'category' => 'misc', 'constraints' => [ 'depends' => [ - 'typo3' => '11.5.0-12.9.99', + 'typo3' => '12.4.0-12.9.99', ], 'conflicts' => [ ], ], 'autoload' => [ 'psr-4' => [ - 'StudioMitte\\FriendlyCaptcha\\' => 'Classes', + 'StudioMitte\\Csv2Xlf\\' => 'Classes', ], ], 'state' => 'beta', - 'version' => '0.1.6', + 'version' => '0.1.0', ];