mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-26 04:56:13 +01:00
tea/composer.json
Łukasz Uznański ee7e76e18f
[TASK] Add PHP YAML lint instead of GitHub action (#84)
Co-authored-by: Łukasz Uznański <l.uznanski@macopedia.com>
2020-08-05 13:49:10 +02:00

116 lines
4.1 KiB
JSON

{
"name": "ttn/tea",
"description": "TYPO3 example extension for unit testing and best practices",
"type": "typo3-cms-extension",
"keywords": [
"typo3",
"example",
"extension",
"tdd",
"phpunit",
"unit testing",
"best practices"
],
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Oliver Klee",
"email": "typo3-coding@oliverklee.de",
"homepage": "https://www.oliverklee.de",
"role": "developer"
}
],
"support": {
"issues": "https://github.com/typo3-trainer-network/tea/issues",
"source": "https://github.com/typo3-trainer-network/tea"
},
"require": {
"php": "~7.2.0 || ~7.3.0 || ~7.4.0",
"typo3/cms-core": "^9.5 || ^10.4",
"typo3/cms-extbase": "^9.5 || ^10.4",
"typo3/cms-fluid": "^9.5 || ^10.4",
"typo3/cms-frontend": "^9.5 || ^10.4"
},
"require-dev": {
"codeception/codeception": "^4.1.5",
"friendsofphp/php-cs-fixer": "^2.16.3",
"helhum/typo3-composer-setup": "^0.5.6",
"helmich/typo3-typoscript-lint": "^2.1.1",
"nimut/testing-framework": "^5.0.3",
"phpunit/phpunit": "^7.5.20",
"squizlabs/php_codesniffer": "^3.5.5",
"typo3/cms-fluid-styled-content": "^9.5 || ^10.4",
"seld/jsonlint": "^1.8",
"phpdocumentor/reflection-docblock": "<= 5.1 || > 5.2",
"sensiolabs/security-checker": "^6.0",
"j13k/yaml-lint": "1.1.x-dev"
},
"replace": {
"typo3-ter/tea": "self.version"
},
"autoload": {
"psr-4": {
"TTN\\Tea\\": "Classes/"
}
},
"autoload-dev": {
"psr-4": {
"TTN\\Tea\\Tests\\": "Tests/"
}
},
"prefer-stable": true,
"config": {
"preferred-install": {
"*": "dist"
},
"sort-packages": true,
"vendor-dir": ".Build/vendor"
},
"scripts": {
"ci:php:lint": "find *.php Classes Configuration Tests -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l",
"ci:php:codestyle": "php-cs-fixer fix --config .php_cs.dist -v --dry-run --using-cache false --diff --diff-format=udiff",
"ci:php:sniff": ".Build/vendor/bin/phpcs Classes Tests",
"ci:json:lint": "find . -name '*.json' -not -path '*.Build/*' | xargs .Build/vendor/bin/jsonlint -q",
"ci:yaml:lint": "find . -name '*.yml' -not -path '*.Build/*' | xargs .Build/vendor/bin/yaml-lint",
"ci:ts:lint": ".Build/vendor/bin/typoscript-lint -c Configuration/TsLint.yml --ansi -n --fail-on-warnings -vvv Configuration/TypoScript",
"ci:tests:unit": ".Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/UnitTests.xml Tests/Unit",
"ci:tests:functional": "find 'Tests/Functional' -wholename '*Test.php' | parallel --gnu 'echo; echo \"Running functional test suite {}\"; .Build/vendor/bin/phpunit -c .Build/vendor/nimut/testing-framework/res/Configuration/FunctionalTests.xml {}';",
"ci:security": ".Build/vendor/bin/security-checker security:check",
"ci:tests": [
"@ci:tests:unit",
"@ci:tests:functional"
],
"ci:dynamic": [
"@ci:tests"
],
"ci:static": [
"@ci:php:lint",
"@ci:php:sniff",
"@ci:ts:lint"
],
"ci": [
"@ci:static"
],
"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);'"
],
"fix:php-cs": "php-cs-fixer fix",
"fix:php-sniff": "phpcbf Classes Tests",
"post-autoload-dump": [
"@link-extension"
]
},
"extra": {
"branch-alias": {
"dev-master": "2.0.x-dev"
},
"typo3/cms": {
"extension-key": "tea",
"web-dir": ".Build/public"
},
"helhum/typo3-console": {
"install-extension-dummy": "0"
}
}
}