Skip to content

Commit 20b31b9

Browse files
authored
Merge pull request #76 from pagemachine/normalize-composer-scripts
Normalize Composer scripts
2 parents 5e070af + 7848480 commit 20b31b9

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

composer.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,29 @@
4949
}
5050
},
5151
"scripts": {
52-
"analyze:php": "phpstan analyse --ansi --no-progress --memory-limit=512M --configuration=phpstan.neon",
5352
"build": [
5453
"@composer require --no-progress --ansi --update-with-dependencies typo3/cms-core $TYPO3_VERSION",
55-
"@composer validate --ansi",
56-
"@composer normalize --no-update-lock --dry-run",
5754
"@lint"
5855
],
59-
"fix:style": "php-cs-fixer fix --diff",
56+
"composer:lint": [
57+
"@composer validate --ansi",
58+
"@composer normalize --no-update-lock --dry-run"
59+
],
6060
"lint": [
61-
"@lint:php",
62-
"@lint:style",
63-
"@analyze:php",
61+
"@composer:lint",
62+
"@php:lint"
63+
],
64+
"php:lint": [
65+
"@php:syntax:lint",
66+
"@php:style:lint",
67+
"@php:static:lint",
6468
"@php:rector:lint"
6569
],
66-
"lint:php": "parallel-lint --show-deprecated --exclude bin --exclude vendor --exclude web .",
67-
"lint:style": "php-cs-fixer fix --dry-run --diff",
6870
"php:rector:fix": "rector",
69-
"php:rector:lint": "rector --dry-run --no-progress-bar"
71+
"php:rector:lint": "rector --dry-run --no-progress-bar",
72+
"php:static:lint": "phpstan analyse --ansi --no-progress --memory-limit=512M --configuration=phpstan.neon",
73+
"php:style:fix": "php-cs-fixer fix --diff",
74+
"php:style:lint": "php-cs-fixer fix --dry-run --diff",
75+
"php:syntax:lint": "parallel-lint --show-deprecated --exclude bin --exclude vendor --exclude web ."
7076
}
7177
}

0 commit comments

Comments
 (0)