Skip to content

Commit 444cc83

Browse files
committed
cs: normalize composer.json using ergebnis/composer-normalize
1 parent b72d176 commit 444cc83

File tree

2 files changed

+806
-32
lines changed

2 files changed

+806
-32
lines changed

composer.json

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
11
{
22
"name": "api-platform/demo",
33
"description": "Demo app for the API Platform framework using Laravel",
4-
"type": "project",
5-
"keywords": ["api-platform", "demo", "laravel", "api", "framework"],
64
"license": "MIT",
5+
"type": "project",
6+
"keywords": [
7+
"api-platform",
8+
"demo",
9+
"laravel",
10+
"api",
11+
"framework"
12+
],
713
"require": {
814
"php": "^8.3",
915
"api-platform/laravel": "^4.0.16",
1016
"laravel/framework": "^11.41.3",
1117
"laravel/tinker": "^2.10.1"
1218
},
1319
"require-dev": {
20+
"ergebnis/composer-normalize": "^2.45",
1421
"fakerphp/faker": "^1.24.1",
1522
"laravel/pail": "^1.2.2",
1623
"laravel/pint": "^1.20",
@@ -19,6 +26,8 @@
1926
"nunomaduro/collision": "^8.6.1",
2027
"phpunit/phpunit": "^11.5.6"
2128
},
29+
"minimum-stability": "stable",
30+
"prefer-stable": true,
2231
"autoload": {
2332
"psr-4": {
2433
"App\\": "app/",
@@ -31,14 +40,30 @@
3140
"Tests\\": "tests/"
3241
}
3342
},
43+
"config": {
44+
"allow-plugins": {
45+
"ergebnis/composer-normalize": true,
46+
"pestphp/pest-plugin": true,
47+
"php-http/discovery": true
48+
},
49+
"bump-after-update": true,
50+
"optimize-autoloader": true,
51+
"preferred-install": "dist",
52+
"sort-packages": true
53+
},
54+
"extra": {
55+
"laravel": {
56+
"dont-discover": []
57+
}
58+
},
3459
"scripts": {
60+
"post-update-cmd": [
61+
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
62+
],
3563
"post-autoload-dump": [
3664
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
3765
"@php artisan package:discover --ansi"
3866
],
39-
"post-update-cmd": [
40-
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
41-
],
4267
"post-root-package-install": [
4368
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
4469
],
@@ -51,19 +76,14 @@
5176
"Composer\\Config::disableProcessTimeout",
5277
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
5378
],
79+
"fix-cs": [
80+
"./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=php-cs-fixer.dist.php"
81+
],
5482
"install-tools": [
5583
"composer install --working-dir=tools/php-cs-fixer",
5684
"composer install --working-dir=tools/phpstan",
5785
"composer install --working-dir=tools/rector"
5886
],
59-
"update-tools": [
60-
"composer update --working-dir=tools/php-cs-fixer",
61-
"composer update --working-dir=tools/phpstan",
62-
"composer update --working-dir=tools/rector"
63-
],
64-
"fix-cs": [
65-
"./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config=php-cs-fixer.dist.php"
66-
],
6787
"phpstan": [
6888
"./tools/phpstan/vendor/bin/phpstan"
6989
],
@@ -74,23 +94,11 @@
7494
"@fix-cs",
7595
"@run-phpstan",
7696
"@run-rector"
97+
],
98+
"update-tools": [
99+
"composer update --working-dir=tools/php-cs-fixer",
100+
"composer update --working-dir=tools/phpstan",
101+
"composer update --working-dir=tools/rector"
77102
]
78-
},
79-
"extra": {
80-
"laravel": {
81-
"dont-discover": []
82-
}
83-
},
84-
"config": {
85-
"optimize-autoloader": true,
86-
"preferred-install": "dist",
87-
"sort-packages": true,
88-
"allow-plugins": {
89-
"pestphp/pest-plugin": true,
90-
"php-http/discovery": true
91-
},
92-
"bump-after-update": true
93-
},
94-
"minimum-stability": "stable",
95-
"prefer-stable": true
103+
}
96104
}

0 commit comments

Comments
 (0)