|
64 | 64 | "phpstan/phpstan-webmozart-assert": "^2.0",
|
65 | 65 | "povils/phpmnd": "^3.5",
|
66 | 66 | "rector/rector": "^2.0",
|
| 67 | + "shipmonk/composer-dependency-analyser": "^1.8", |
67 | 68 | "shipmonk/phpstan-baseline-per-identifier": "^2.1",
|
68 | 69 | "spatie/pest-plugin-snapshots": "^1.1 || ^2.0",
|
69 | 70 | "spaze/phpstan-disallowed-calls": "^4.4",
|
|
117 | 118 | "forward-command": true,
|
118 | 119 | "target-directory": "vendor-bin"
|
119 | 120 | },
|
| 121 | + "branch-alias": { |
| 122 | + "dev-main": "2.x-dev" |
| 123 | + }, |
| 124 | + "composer-normalize": { |
| 125 | + "indent-size": 4, |
| 126 | + "indent-style": "space" |
| 127 | + }, |
120 | 128 | "hooks": {
|
121 | 129 | "post-merge": [
|
122 | 130 | "composer checks"
|
|
125 | 133 | "composer checks"
|
126 | 134 | ]
|
127 | 135 | },
|
128 |
| - "hyperf": { |
129 |
| - "plugin": { |
130 |
| - "sort-autoload": { |
131 |
| - "guanguans/ai-commit": -1 |
132 |
| - } |
133 |
| - } |
134 |
| - }, |
135 | 136 | "laravel": {
|
136 | 137 | "aliases": {
|
137 | 138 | "ApiResponseFacade": "Guanguans\\LaravelApiResponse\\Facades\\ApiResponseFacade"
|
|
157 | 158 | "ai-commit-github-models": "@ai-commit --generator=github_models_cli",
|
158 | 159 | "ai-commit-github-models-no-verify": "@ai-commit-github-models --no-verify",
|
159 | 160 | "ai-commit-no-verify": "@ai-commit --no-verify",
|
160 |
| - "benchmark": "@php ./vendor/bin/phpbench run --warmup=1 --retry-threshold=1 --iterations=3 --revs=5 --ansi -v", |
| 161 | + "benchmark": "@php ./vendor/bin/phpbench run --report=aggregate --ansi -v", |
161 | 162 | "cghooks": "@php ./vendor/bin/cghooks --ansi -v",
|
| 163 | + "cghooks-ignore": "[ ! -f \"./vendor/bin/cghooks\" ] && exit 0 || php ./vendor/bin/cghooks --ansi -v", |
162 | 164 | "checks": [
|
163 | 165 | "@composer-normalize",
|
164 | 166 | "@composer-validate",
|
165 |
| - "@composer-require-checker", |
166 |
| - "@composer-unused", |
167 | 167 | "@yaml-lint",
|
168 | 168 | "@md-lint",
|
169 | 169 | "@facade-lint",
|
170 | 170 | "@style-lint",
|
| 171 | + "@composer-dependency-analyser", |
171 | 172 | "@phpmnd",
|
172 | 173 | "@test",
|
173 | 174 | "@phpstan",
|
174 | 175 | "@rector-dry-run"
|
175 | 176 | ],
|
| 177 | + "class-leak": "@php ./vendor/bin/class-leak --ansi -v", |
| 178 | + "class-leak-check": "@class-leak check ./config ./src --skip-suffix=Pipe --skip-path=Support/Traits --skip-type=\\Guanguans\\LaravelExceptionNotify\\Contracts\\Channel --skip-type=\\Guanguans\\LaravelExceptionNotify\\Contracts\\Collector --skip-type=Rector\\Rector\\AbstractRector", |
| 179 | + "composer-audit": "@composer audit --ansi -v", |
176 | 180 | "composer-bin-all-update": "@composer bin all update --ansi -v",
|
177 | 181 | "composer-check-platform-reqs": "@composer check-platform-reqs --lock --ansi -v",
|
| 182 | + "composer-dependency-analyser": "@php ./vendor/bin/composer-dependency-analyser --verbose", |
178 | 183 | "composer-normalize": "@composer normalize --dry-run --diff --ansi -v",
|
179 | 184 | "composer-require-checker": "@php ./vendor/bin/composer-require-checker check --config-file=composer-require-checker.json composer.json --ansi -v",
|
180 | 185 | "composer-require-checker-json": "@php ./vendor/bin/composer-require-checker check --config-file=composer-require-checker.json composer.json --ansi -v --output=json | jq",
|
|
231 | 236 | "@putenv PHP83=/opt/homebrew/opt/php@8.3/bin/php",
|
232 | 237 | "@putenv PHP84=/opt/homebrew/opt/php@8.4/bin/php"
|
233 | 238 | ],
|
234 |
| - "rector": "@php ./vendor/bin/rector --clear-cache --ansi -v", |
| 239 | + "rector": "@php ./vendor/bin/rector --ansi -v", |
| 240 | + "rector-clear-cache": "@rector --clear-cache", |
| 241 | + "rector-clear-cache-dry-run": "@rector-clear-cache --dry-run", |
235 | 242 | "rector-custom-rule": "@rector custom-rule",
|
236 | 243 | "rector-detect-node": "@rector detect-node --loop",
|
237 | 244 | "rector-dry-run": "@rector --dry-run",
|
|
246 | 253 | "release-minor-dry-run": "@release-minor --dry-run",
|
247 | 254 | "release-patch": "@release patch",
|
248 | 255 | "release-patch-dry-run": "@release-patch --dry-run",
|
| 256 | + "sk": "@php ./vendor/bin/swiss-knife --ansi -v", |
| 257 | + "sk-check-commented-code": "@sk check-commented-code ./config ./src --line-limit=5", |
| 258 | + "sk-check-conflicts": "@sk check-conflicts ./config ./src", |
| 259 | + "sk-finalize-classes": "@sk finalize-classes ./config ./src", |
| 260 | + "sk-finalize-classes-dry-run": "@sk-finalize-classes --dry-run", |
| 261 | + "sk-find-multi-classes": "@sk find-multi-classes ./config ./src", |
| 262 | + "sk-namespace-to-psr-4": "@sk namespace-to-psr-4 ./src --namespace-root=Guanguans\\LaravelExceptionNotify\\", |
249 | 263 | "style-fix": "@php ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php --show-progress=dots --diff --ansi -v",
|
250 | 264 | "style-lint": "@style-fix --diff --dry-run",
|
251 | 265 | "test": "@pest",
|
|
256 | 270 | "test-phpunit-coverage": "@test --coverage-html=./.build/phpunit/ --coverage-clover=clover.xml",
|
257 | 271 | "test-type-coverage": "@pest-type-coverage",
|
258 | 272 | "test-update-snapshots": "@pest-update-snapshots",
|
| 273 | + "time-end": "@php -r 'date_default_timezone_set('\\''Asia/Shanghai'\\''); echo \"\\nTime: \".round(time() - (int) getenv('\\''START_TIME'\\'')).'\\'' seconds, Memory: '\\''.round(memory_get_peak_usage(true) / 1024 / 1024, 2).\" MB\\n\";'", |
| 274 | + "time-start": "@putenv START_TIME=$(date +%s);", |
259 | 275 | "trufflehog": "trufflehog git https://github.com/guanguans/notify --only-verified",
|
260 | 276 | "yaml-lint": "@php ./vendor/bin/yaml-lint .github --ansi -v",
|
261 | 277 | "zh-fix": "@zh-lint --fix",
|
|
0 commit comments