2017-04-24 17:46:03 +02:00
|
|
|
{
|
2020-12-01 23:12:34 +01:00
|
|
|
"name": "ttn/tea",
|
2021-02-03 19:52:21 +01:00
|
|
|
"description": "TYPO3 example extension for unit testing and best practices",
|
2021-12-26 02:48:55 +01:00
|
|
|
"license": "GPL-2.0-or-later",
|
|
|
|
"type": "typo3-cms-extension",
|
2020-12-01 23:12:34 +01:00
|
|
|
"keywords": [
|
|
|
|
"typo3",
|
|
|
|
"example",
|
|
|
|
"extension",
|
|
|
|
"tdd",
|
|
|
|
"phpunit",
|
|
|
|
"unit testing",
|
|
|
|
"best practices"
|
|
|
|
],
|
|
|
|
"authors": [
|
|
|
|
{
|
|
|
|
"name": "Oliver Klee",
|
|
|
|
"email": "typo3-coding@oliverklee.de",
|
|
|
|
"homepage": "https://www.oliverklee.de",
|
|
|
|
"role": "developer"
|
|
|
|
}
|
|
|
|
],
|
2022-04-12 19:00:11 +02:00
|
|
|
"homepage": "https://extensions.typo3.org/extension/tea/",
|
2021-12-26 02:48:55 +01:00
|
|
|
"support": {
|
|
|
|
"issues": "https://github.com/TYPO3-Documentation/tea/issues",
|
2022-04-12 19:00:11 +02:00
|
|
|
"source": "https://github.com/TYPO3-Documentation/tea",
|
|
|
|
"docs": "https://docs.typo3.org/p/ttn/tea/main/en-us/"
|
2021-12-26 02:48:55 +01:00
|
|
|
},
|
2020-12-01 23:12:34 +01:00
|
|
|
"require": {
|
2022-09-22 11:49:45 +02:00
|
|
|
"php": "~7.4.0 || ~8.0.0 || ~8.1.0",
|
2022-10-06 17:55:14 +02:00
|
|
|
"psr/http-message": "^1.0.1",
|
2022-10-19 09:06:36 +02:00
|
|
|
"typo3/cms-core": "^11.5.4 || ^12.0",
|
|
|
|
"typo3/cms-extbase": "^11.5.4 || ^12.0",
|
|
|
|
"typo3/cms-fluid": "^11.5.4 || ^12.0",
|
|
|
|
"typo3/cms-frontend": "^11.5.4 || ^12.0"
|
2020-12-01 23:12:34 +01:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2022-08-28 13:58:28 +02:00
|
|
|
"doctrine/dbal": "^2.13.8 || ^3.3.7",
|
2022-09-23 16:00:17 +02:00
|
|
|
"ergebnis/composer-normalize": "^2.28.3",
|
2022-10-13 11:24:19 +02:00
|
|
|
"friendsofphp/php-cs-fixer": "^3.12.0",
|
2022-10-16 17:42:10 +02:00
|
|
|
"helmich/typo3-typoscript-lint": "^3.0.0",
|
2021-12-25 02:39:48 +01:00
|
|
|
"jangregor/phpstan-prophecy": "^1.0.0",
|
2022-09-13 11:29:17 +02:00
|
|
|
"php-coveralls/php-coveralls": "^2.5.3",
|
2022-08-23 13:47:10 +02:00
|
|
|
"phpspec/prophecy": "^1.15.0",
|
2022-10-09 06:19:32 +02:00
|
|
|
"phpspec/prophecy-phpunit": "2.0.1",
|
2022-10-18 09:15:05 +02:00
|
|
|
"phpstan/extension-installer": "^1.2.0",
|
2022-10-18 08:43:11 +02:00
|
|
|
"phpstan/phpstan": "^1.8.10",
|
2022-04-27 16:00:28 +02:00
|
|
|
"phpstan/phpstan-phpunit": "^1.1.1",
|
2022-09-23 16:02:59 +02:00
|
|
|
"phpstan/phpstan-strict-rules": "^1.4.4",
|
2022-10-09 06:19:32 +02:00
|
|
|
"phpunit/phpunit": "^9.5.25",
|
2022-10-18 21:43:40 +02:00
|
|
|
"saschaegerer/phpstan-typo3": "^1.8.0",
|
2022-10-15 20:53:15 +02:00
|
|
|
"sbuerk/typo3-cmscomposerinstallers-testingframework-bridge": "^0.0.1",
|
2022-04-27 16:00:28 +02:00
|
|
|
"seld/jsonlint": "^1.9.0",
|
2022-06-27 12:15:31 +02:00
|
|
|
"squizlabs/php_codesniffer": "^3.7.1",
|
2022-10-09 17:51:02 +02:00
|
|
|
"symfony/yaml": "^5.4 || ^6.1",
|
2022-10-19 09:06:36 +02:00
|
|
|
"typo3/cms-fluid-styled-content": "^11.5.4 || ^12.0",
|
2022-08-15 11:48:03 +02:00
|
|
|
"typo3/coding-standards": "^0.5.5",
|
2022-10-13 13:52:25 +02:00
|
|
|
"typo3/testing-framework": "^7.0@dev"
|
2020-12-01 23:12:34 +01:00
|
|
|
},
|
2021-12-26 02:48:55 +01:00
|
|
|
"replace": {
|
|
|
|
"typo3-ter/tea": "self.version"
|
|
|
|
},
|
|
|
|
"conflict": {
|
|
|
|
"typo3/class-alias-loader": "< 1.1.0"
|
|
|
|
},
|
|
|
|
"prefer-stable": true,
|
|
|
|
"autoload": {
|
|
|
|
"psr-4": {
|
|
|
|
"TTN\\Tea\\": "Classes/"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"autoload-dev": {
|
|
|
|
"psr-4": {
|
|
|
|
"TTN\\Tea\\Tests\\": "Tests/"
|
|
|
|
}
|
|
|
|
},
|
2021-02-03 19:52:21 +01:00
|
|
|
"config": {
|
2021-12-28 02:10:09 +01:00
|
|
|
"allow-plugins": {
|
2021-12-29 02:50:08 +01:00
|
|
|
"ergebnis/composer-normalize": true,
|
|
|
|
"phpstan/extension-installer": true,
|
2022-10-15 20:53:15 +02:00
|
|
|
"sbuerk/typo3-cmscomposerinstallers-testingframework-bridge": true,
|
2021-12-29 02:50:08 +01:00
|
|
|
"typo3/class-alias-loader": true,
|
|
|
|
"typo3/cms-composer-installers": true
|
2021-12-28 02:10:09 +01:00
|
|
|
},
|
2021-02-03 19:52:21 +01:00
|
|
|
"preferred-install": {
|
|
|
|
"*": "dist"
|
|
|
|
},
|
|
|
|
"sort-packages": true,
|
|
|
|
"vendor-dir": ".Build/vendor"
|
2020-12-01 23:12:34 +01:00
|
|
|
},
|
2021-02-03 19:52:21 +01:00
|
|
|
"extra": {
|
|
|
|
"branch-alias": {
|
2022-10-19 22:19:52 +02:00
|
|
|
"dev-main": "3.0.x-dev"
|
2021-02-03 19:52:21 +01:00
|
|
|
},
|
|
|
|
"typo3/cms": {
|
2021-09-11 13:56:03 +02:00
|
|
|
"app-dir": ".Build",
|
2021-02-03 19:52:21 +01:00
|
|
|
"extension-key": "tea",
|
|
|
|
"web-dir": ".Build/public"
|
|
|
|
}
|
2020-12-01 23:12:34 +01:00
|
|
|
},
|
|
|
|
"scripts": {
|
2021-02-03 19:52:21 +01:00
|
|
|
"post-autoload-dump": [
|
|
|
|
"@link-extension"
|
|
|
|
],
|
|
|
|
"ci": [
|
|
|
|
"@ci:static"
|
2020-12-01 23:12:34 +01:00
|
|
|
],
|
2022-10-16 17:50:33 +02:00
|
|
|
"ci:composer:normalize": "@composer normalize --no-check-lock --dry-run",
|
2021-10-06 16:23:35 +02:00
|
|
|
"ci:coverage": [
|
|
|
|
"@ci:coverage:unit",
|
|
|
|
"@ci:coverage:functional"
|
|
|
|
],
|
2022-04-13 16:14:25 +02:00
|
|
|
"ci:coverage:functional": [
|
|
|
|
"@coverage:create-directories",
|
|
|
|
".Build/vendor/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml --whitelist Classes --coverage-php=.Build/coverage/functional.cov Tests/Functional"
|
|
|
|
],
|
|
|
|
"ci:coverage:merge": [
|
|
|
|
"@coverage:create-directories",
|
|
|
|
"@php tools/phpcov merge --clover=./build/logs/clover.xml ./.Build/coverage/"
|
|
|
|
],
|
|
|
|
"ci:coverage:unit": [
|
|
|
|
"@coverage:create-directories",
|
|
|
|
".Build/vendor/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml --whitelist Classes --coverage-php=.Build/coverage/unit.cov Tests/Unit"
|
|
|
|
],
|
2020-12-01 23:12:34 +01:00
|
|
|
"ci:dynamic": [
|
|
|
|
"@ci:tests"
|
|
|
|
],
|
2022-05-18 17:17:45 +02:00
|
|
|
"ci:json:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -name '*.json' | xargs -r php .Build/vendor/bin/jsonlint -q",
|
2020-12-01 23:12:34 +01:00
|
|
|
"ci:php": [
|
2021-04-05 17:26:00 +02:00
|
|
|
"@ci:php:copypaste",
|
2021-03-30 00:55:20 +02:00
|
|
|
"@ci:php:cs-fixer",
|
2021-04-05 17:26:00 +02:00
|
|
|
"@ci:php:lint",
|
|
|
|
"@ci:php:sniff",
|
|
|
|
"@ci:php:stan"
|
2020-12-01 23:12:34 +01:00
|
|
|
],
|
2022-03-29 12:21:24 +02:00
|
|
|
"ci:php:copypaste": "@php ./tools/phpcpd Classes",
|
2021-11-17 16:45:49 +01:00
|
|
|
"ci:php:cs-fixer": "php-cs-fixer fix --config .php-cs-fixer.php -v --dry-run --using-cache no --diff",
|
2022-09-07 11:47:31 +02:00
|
|
|
"ci:php:lint": "find .*.php *.php Classes Configuration Tests -name '*.php' -print0 | xargs -r -0 -n 1 -P 4 php -l",
|
2021-08-24 02:42:02 +02:00
|
|
|
"ci:php:sniff": "phpcs Classes Configuration Tests",
|
2021-09-13 04:06:10 +02:00
|
|
|
"ci:php:stan": "phpstan --no-progress",
|
2020-12-01 23:12:34 +01:00
|
|
|
"ci:static": [
|
2021-04-05 17:26:00 +02:00
|
|
|
"@ci:composer:normalize",
|
|
|
|
"@ci:json:lint",
|
|
|
|
"@ci:php:copypaste",
|
|
|
|
"@ci:php:cs-fixer",
|
2020-12-01 23:12:34 +01:00
|
|
|
"@ci:php:lint",
|
|
|
|
"@ci:php:sniff",
|
2021-04-05 17:26:00 +02:00
|
|
|
"@ci:php:stan",
|
|
|
|
"@ci:ts:lint",
|
|
|
|
"@ci:yaml:lint"
|
2020-12-01 23:12:34 +01:00
|
|
|
],
|
2021-02-03 19:52:21 +01:00
|
|
|
"ci:tests": [
|
|
|
|
"@ci:tests:unit",
|
|
|
|
"@ci:tests:functional"
|
2020-12-01 23:12:34 +01:00
|
|
|
],
|
2022-02-20 15:18:46 +01:00
|
|
|
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/FunctionalTests.xml {}';",
|
|
|
|
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/typo3/testing-framework/Resources/Core/Build/UnitTests.xml Tests/Unit",
|
2021-08-24 02:42:02 +02:00
|
|
|
"ci:ts:lint": "typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
|
2022-09-21 11:04:28 +02:00
|
|
|
"ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -regextype egrep -regex '.*.ya?ml$' | xargs -r php ./.Build/vendor/bin/yaml-lint",
|
2022-04-13 16:14:25 +02:00
|
|
|
"coverage:create-directories": "mkdir -p build/logs .Build/coverage",
|
2021-08-22 17:47:05 +02:00
|
|
|
"docs:generate": [
|
|
|
|
"docker run --rm t3docs/render-documentation show-shell-commands > tempfile.sh; echo 'dockrun_t3rd makehtml' >> tempfile.sh; bash tempfile.sh; rm tempfile.sh"
|
|
|
|
],
|
2020-12-01 23:12:34 +01:00
|
|
|
"fix:php": [
|
|
|
|
"@fix:php:cs",
|
|
|
|
"@fix:php:sniff"
|
|
|
|
],
|
2021-11-17 16:45:49 +01:00
|
|
|
"fix:php:cs": "php-cs-fixer fix --config .php-cs-fixer.php",
|
2021-08-24 02:42:02 +02:00
|
|
|
"fix:php:sniff": "phpcbf Classes Configuration Tests",
|
2021-02-03 19:52:21 +01:00
|
|
|
"link-extension": [
|
|
|
|
"@php -r 'is_dir($extFolder=__DIR__.\"/.Build/public/typo3conf/ext/\") || mkdir($extFolder, 0777, true);'",
|
|
|
|
"@php -r 'file_exists($extFolder=__DIR__.\"/.Build/public/typo3conf/ext/tea\") || symlink(__DIR__,$extFolder);'"
|
2021-02-22 16:59:15 +01:00
|
|
|
],
|
2021-09-13 04:06:10 +02:00
|
|
|
"phpstan:baseline": ".Build/vendor/bin/phpstan --generate-baseline=phpstan-baseline.neon",
|
2021-02-22 16:59:15 +01:00
|
|
|
"prepare-release": [
|
2021-07-08 02:08:36 +02:00
|
|
|
"rm .gitignore",
|
2021-02-22 16:59:15 +01:00
|
|
|
"rm -rf .Build",
|
2021-09-22 10:50:41 +02:00
|
|
|
"rm -rf .ddev",
|
2021-02-22 16:59:15 +01:00
|
|
|
"rm -rf .github",
|
|
|
|
"rm -rf .gitlab",
|
|
|
|
"rm -rf Tests",
|
2021-02-24 13:19:09 +01:00
|
|
|
"rm -rf tools",
|
2021-02-22 16:59:15 +01:00
|
|
|
"rm .editorconfig",
|
|
|
|
"rm .gitattributes",
|
2021-11-17 16:45:49 +01:00
|
|
|
"rm .php-cs-fixer.php",
|
2022-05-18 17:17:45 +02:00
|
|
|
"rm .eslintignore",
|
|
|
|
"rm .eslintrc.json",
|
|
|
|
"rm .prettierrc.js",
|
|
|
|
"rm package.json",
|
|
|
|
"rm stylelint.config.js",
|
2021-02-24 13:19:09 +01:00
|
|
|
"rm phive.xml",
|
2021-09-13 04:06:10 +02:00
|
|
|
"rm phpstan-baseline.neon",
|
|
|
|
"rm phpstan.neon",
|
2021-02-22 16:59:15 +01:00
|
|
|
"rm phpcs.xml"
|
2020-12-01 23:12:34 +01:00
|
|
|
]
|
|
|
|
},
|
2021-08-24 02:27:27 +02:00
|
|
|
"scripts-descriptions": {
|
|
|
|
"ci": "Runs all dynamic and static code checks.",
|
|
|
|
"ci:composer:normalize": "Checks the composer.json.",
|
2021-10-06 16:23:35 +02:00
|
|
|
"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:unit": "Generates the code coverage report for unit tests.",
|
2021-08-24 02:27:27 +02:00
|
|
|
"ci:dynamic": "Runs all PHPUnit tests (unit and functional).",
|
|
|
|
"ci:json:lint": "Lints the JSON files.",
|
|
|
|
"ci:php": "Runs all static checks for the PHP files.",
|
|
|
|
"ci:php:copypaste": "Checks for copy'n'pasted PHP code.",
|
|
|
|
"ci:php:cs-fixer": "Checks the code style with the PHP Coding Standards Fixer (PHP-CS-Fixer).",
|
|
|
|
"ci:php:lint": "Lints the PHP files for syntax errors.",
|
|
|
|
"ci:php:sniff": "Checks the code style with PHP_CodeSniffer (PHPCS).",
|
|
|
|
"ci:php:stan": "Checks the PHP types using PHPStan.",
|
|
|
|
"ci:static": "Runs all static code checks (syntax, style, types).",
|
|
|
|
"ci:tests": "Runs all PHPUnit tests (unit and functional).",
|
|
|
|
"ci:tests:functional": "Runs the functional tests.",
|
|
|
|
"ci:tests:unit": "Runs the unit tests.",
|
|
|
|
"ci:ts:lint": "Lints the TypoScript files.",
|
|
|
|
"ci:yaml:lint": "Lints the YAML files.",
|
2022-04-13 16:14:25 +02:00
|
|
|
"coverage:create-directories": "Creates the directories needed for recording and merging the code coverage reports.",
|
2021-08-24 02:27:27 +02:00
|
|
|
"docs:generate": "Renders the extension ReST documentation.",
|
|
|
|
"fix:php": "Runs all fixers for the PHP code.",
|
|
|
|
"fix:php:cs": "Fixes the code style with PHP-CS-Fixer.",
|
2021-09-13 04:06:10 +02:00
|
|
|
"fix:php:sniff": "Fixes the code style with PHP_CodeSniffer.",
|
2022-02-25 11:36:30 +01:00
|
|
|
"phpstan:baseline": "Updates the PHPStan baseline file to match the code.",
|
|
|
|
"prepare-release": "Removes development-only files in preparation of a TER release."
|
2020-12-01 23:12:34 +01:00
|
|
|
}
|
2017-04-24 17:46:03 +02:00
|
|
|
}
|