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-08-13 21:02:31 +02:00
|
|
|
"php": "~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0",
|
2022-01-12 11:22:59 +01:00
|
|
|
"typo3/cms-core": "^10.4 || ^11.5.2",
|
|
|
|
"typo3/cms-extbase": "^10.4 || ^11.5.2",
|
|
|
|
"typo3/cms-fluid": "^10.4 || ^11.5.2",
|
|
|
|
"typo3/cms-frontend": "^10.4 || ^11.5.2"
|
2020-12-01 23:12:34 +01:00
|
|
|
},
|
|
|
|
"require-dev": {
|
2022-06-27 12:16:39 +02:00
|
|
|
"codeception/codeception": "^4.2.1",
|
2022-03-11 17:16:23 +01:00
|
|
|
"doctrine/dbal": "^2.13.8",
|
|
|
|
"ergebnis/composer-normalize": "^2.19.0",
|
2021-12-28 02:10:09 +01:00
|
|
|
"friendsofphp/php-cs-fixer": "^3.4.0",
|
2021-09-11 13:53:27 +02:00
|
|
|
"helmich/typo3-typoscript-lint": "^2.5.2",
|
2021-12-25 02:39:48 +01:00
|
|
|
"jangregor/phpstan-prophecy": "^1.0.0",
|
2022-04-15 18:47:18 +02:00
|
|
|
"php-coveralls/php-coveralls": "^2.5.2",
|
2021-09-11 13:53:27 +02:00
|
|
|
"phpstan/extension-installer": "^1.1.0",
|
2022-07-21 13:04:54 +02:00
|
|
|
"phpstan/phpstan": "^1.8.2",
|
2022-04-27 16:00:28 +02:00
|
|
|
"phpstan/phpstan-phpunit": "^1.1.1",
|
2022-06-28 18:42:50 +02:00
|
|
|
"phpstan/phpstan-strict-rules": "^1.3.0",
|
2022-08-01 12:20:01 +02:00
|
|
|
"phpunit/phpunit": "^8.5.28",
|
2022-03-11 17:16:23 +01:00
|
|
|
"saschaegerer/phpstan-typo3": "^1.1.2",
|
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",
|
2021-10-06 15:42:52 +02:00
|
|
|
"symfony/yaml": "^4.4.29 || ^5.3.6 || ^6.0",
|
2022-01-12 11:22:59 +01:00
|
|
|
"typo3/cms-fluid-styled-content": "^10.4 || ^11.5.2",
|
2022-08-10 11:43:36 +02:00
|
|
|
"typo3/coding-standards": "^0.5.4",
|
2022-07-27 13:23:24 +02:00
|
|
|
"typo3/testing-framework": "^6.16.6"
|
2020-12-01 23:12:34 +01:00
|
|
|
},
|
2021-12-26 02:48:55 +01:00
|
|
|
"replace": {
|
|
|
|
"typo3-ter/tea": "self.version"
|
|
|
|
},
|
|
|
|
"conflict": {
|
|
|
|
"doctrine/dbal": "2.13.1",
|
2022-01-26 18:25:46 +01:00
|
|
|
"friendsofphp/php-cs-fixer": "3.5.0",
|
2021-12-26 02:48:55 +01:00
|
|
|
"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,
|
|
|
|
"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-01-04 01:33:24 +01:00
|
|
|
"dev-main": "2.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
|
|
|
],
|
2021-08-24 02:42:02 +02:00
|
|
|
"ci:composer:normalize": "@composer normalize --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-01-27 14:14:02 +01:00
|
|
|
"ci:php:lint": "find *.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-05-18 17:17:45 +02:00
|
|
|
"ci:yaml:lint": "find . ! -path '*.Build/*' ! -path '*node_modules/*' -name '*.yml' | 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-22 16:59:15 +01:00
|
|
|
"rm codeception.yml",
|
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
|
|
|
}
|