|
93 | 93 | "check-cs": "@fix-cs --dry-run", |
94 | 94 | "phpstan": "phpstan analyse", |
95 | 95 | "deptrac": "deptrac analyse", |
96 | | - "check-rector": "rector process --dry-run --ansi" |
| 96 | + "check-rector": "rector process --dry-run --ansi", |
| 97 | + "composer-update": "[ -d vendor ] || composer update", |
| 98 | + "yarn-install": "[ -d node_modules ] || yarn install", |
| 99 | + "markdownlint": [ |
| 100 | + "@yarn-install", |
| 101 | + "yarn markdownlint" |
| 102 | + ], |
| 103 | + "test": [ |
| 104 | + "@composer-update", |
| 105 | + "EXIT=0; composer check-cs || EXIT=1; composer phpstan || EXIT=1; composer deptrac || EXIT=1; composer check-rector || EXIT=1; composer markdownlint || EXIT=1; exit $EXIT" |
| 106 | + ] |
97 | 107 | }, |
98 | 108 | "scripts-descriptions": { |
99 | 109 | "fix-cs": "Automatically fixes code style in all files", |
100 | 110 | "check-cs": "Run code style checker for all files", |
101 | 111 | "phpstan": "Run static code analysis", |
102 | 112 | "deptrac": "Run Deptrac architecture testing", |
103 | | - "check-rector": "Check for code refactoring opportunities" |
| 113 | + "check-rector": "Check for code refactoring opportunities", |
| 114 | + "composer-update": "Install composer dependencies if not already installed", |
| 115 | + "yarn-install": "Install yarn dependencies if not already installed", |
| 116 | + "markdownlint": "Run Markdownlint on all documentation files", |
| 117 | + "test": "Run all checks (CS-Fixer, PHPStan, Deptrac, Rector, Markdownlint), continuing past failures and reporting failure overall if any check failed" |
104 | 118 | }, |
105 | 119 | "config": { |
106 | 120 | "allow-plugins": false |
|
0 commit comments