Skip to content

Commit

Permalink
Merge pull request #121 from pagemachine/composer-commands
Browse files Browse the repository at this point in the history
Unify Composer commands
  • Loading branch information
mbrodala authored Apr 22, 2024
2 parents ccb4cc3 + 0542f21 commit e06eecf
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,32 +74,35 @@
}
},
"scripts": {
"analyze:php": "phpstan analyse --ansi --no-progress --configuration=phpstan.neon",
"build": [
"@composer require --no-progress --ansi --update-with-dependencies typo3/cms-core $TYPO3_VERSION",
"@composer validate --ansi",
"@composer normalize --no-update-lock --dry-run",
"@lint",
"@test"
],
"fix:style": "phpcbf",
"composer:lint": [
"@composer validate --ansi",
"@composer normalize --no-update-lock --dry-run"
],
"lint": [
"@lint:php",
"@lint:style",
"@analyze:php",
"@lint:xml",
"@composer:lint",
"@php:syntax:lint",
"@php:style:lint",
"@php:static:lint",
"@xml:lint",
"@php:rector:lint"
],
"lint:php": "parallel-lint --show-deprecated --exclude bin --exclude vendor --exclude web .",
"lint:style": "phpcs",
"lint:xml": "xmllint --pattern '*.xlf,*.svg' Resources --ansi",
"php:functional:test": "phpunit --configuration phpunit-functional.xml --colors=always",
"php:rector:fix": "rector",
"php:rector:lint": "rector --dry-run --no-progress-bar",
"php:static:lint": "phpstan analyse --ansi --no-progress --configuration=phpstan.neon",
"php:style:fix": "phpcbf",
"php:style:lint": "phpcs",
"php:syntax:lint": "parallel-lint --show-deprecated --exclude bin --exclude vendor --exclude web .",
"php:unit:test": "phpunit --colors=always",
"test": [
"@test:unit",
"@test:functional"
"@php:unit:test",
"@php:functional:test"
],
"test:functional": "phpunit --configuration phpunit-functional.xml --colors=always",
"test:unit": "phpunit --colors=always"
"xml:lint": "xmllint --pattern '*.xlf,*.svg' Resources --ansi"
}
}

0 comments on commit e06eecf

Please sign in to comment.