mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 15:16:13 +01:00

[TASK] Drop useless Composer scripts (#1056)

Some Composer scripts do not make sense as they call other scripts
that only make sense when called separately. This change removes
those multi-scripts that are practically useless.
This commit is contained in:
Oliver Klee 2023-12-15 11:45:51 +01:00 committed by GitHub
parent 8cda75819a
commit c4578a6e94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -109,9 +109,6 @@
} }
}, },
"scripts": { "scripts": {
"ci": [
"@ci:static"
],
"ci:composer:normalize": "@composer normalize --no-check-lock --dry-run", "ci:composer:normalize": "@composer normalize --no-check-lock --dry-run",
"ci:composer:psr-verify": "@composer dumpautoload --optimize --strict-psr --no-plugins", "ci:composer:psr-verify": "@composer dumpautoload --optimize --strict-psr --no-plugins",
"ci:coverage": [ "ci:coverage": [
@ -131,9 +128,6 @@
"@coverage:create-directories", "@coverage:create-directories",
".Build/bin/phpunit -c ./Tests/Unit/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit" ".Build/bin/phpunit -c ./Tests/Unit/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit"
], ],
"ci:dynamic": [
"@ci:tests"
],
"ci:json:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -name '*.json' | xargs -r php .Build/bin/jsonlint -q", "ci:json:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -name '*.json' | xargs -r php .Build/bin/jsonlint -q",
"ci:php": [ "ci:php": [
"@ci:php:cs-fixer", "@ci:php:cs-fixer",
@ -155,10 +149,6 @@
"@ci:ts:lint", "@ci:ts:lint",
"@ci:yaml:lint" "@ci:yaml:lint"
], ],
"ci:tests": [
"@ci:tests:unit",
"@ci:tests:functional"
],
"ci:tests:create-directories": "mkdir -p .Build/Web/typo3temp/var/tests", "ci:tests:create-directories": "mkdir -p .Build/Web/typo3temp/var/tests",
"ci:tests:functional": [ "ci:tests:functional": [
"@ci:tests:create-directories", "@ci:tests:create-directories",
@ -208,13 +198,11 @@
] ]
}, },
"scripts-descriptions": { "scripts-descriptions": {
"ci": "Runs all dynamic and static code checks.",
"ci:composer:normalize": "Checks the composer.json.", "ci:composer:normalize": "Checks the composer.json.",
"ci:composer:psr-verify": "Verifies PSR-4 namespace correctness.", "ci:composer:psr-verify": "Verifies PSR-4 namespace correctness.",
"ci:coverage:functional": "Generates the code coverage report for functional tests.", "ci:coverage:functional": "Generates the code coverage report for functional tests.",
"ci:coverage:merge": "Merges the code coverage reports for unit and functional tests.", "ci:coverage:merge": "Merges the code coverage reports for unit and functional tests.",
"ci:coverage:unit": "Generates the code coverage report for unit tests.", "ci:coverage:unit": "Generates the code coverage report for unit tests.",
"ci:dynamic": "Runs all PHPUnit tests (unit and functional).",
"ci:json:lint": "Lints the JSON files.", "ci:json:lint": "Lints the JSON files.",
"ci:php": "Runs all static checks for the PHP files.", "ci:php": "Runs all static checks for the PHP files.",
"ci:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).", "ci:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).",
@ -222,7 +210,6 @@
"ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).", "ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).",
"ci:php:stan": "Checks the PHP types using PHPStan.", "ci:php:stan": "Checks the PHP types using PHPStan.",
"ci:static": "Runs all static code checks (syntax, style, types).", "ci:static": "Runs all static code checks (syntax, style, types).",
"ci:tests": "Runs all PHPUnit tests (unit and functional).",
"ci:tests:create-directories": "Creates the directories required to smoothely run the functional tests.", "ci:tests:create-directories": "Creates the directories required to smoothely run the functional tests.",
"ci:tests:functional": "Runs the functional tests.", "ci:tests:functional": "Runs the functional tests.",
"ci:tests:unit": "Runs the unit tests.", "ci:tests:unit": "Runs the unit tests.",