From 43832310d850e07b770bacbe5274c9ae05430a4f Mon Sep 17 00:00:00 2001 From: Aleksei Lebedev <1329824+LastDragon-ru@users.noreply.github.com> Date: Fri, 22 Mar 2024 08:50:12 +0400 Subject: [PATCH] `composer.json` normalization. --- composer.json | 94 +++++++++++++++++++++++++-------------------------- 1 file changed, 46 insertions(+), 48 deletions(-) diff --git a/composer.json b/composer.json index a8a9fb74d..935d797c2 100644 --- a/composer.json +++ b/composer.json @@ -44,23 +44,23 @@ "ext-xmlreader": "*", "composer/semver": "^3.2", "doctrine/sql-formatter": "^1.1", + "guzzlehttp/psr7": "^1.9.1|^2.4.5", + "http-interop/http-factory-guzzle": "^1.0.0", + "illuminate/collections": "^10.34.0", "illuminate/console": "^10.34.0", "illuminate/container": "^10.34.0", "illuminate/contracts": "^10.34.0", - "illuminate/support": "^10.34.0", - "illuminate/collections": "^10.34.0", "illuminate/database": "^10.34.0", - "illuminate/macroable": "^10.34.0", "illuminate/filesystem": "^10.34.0", "illuminate/http": "^10.34.0", + "illuminate/macroable": "^10.34.0", "illuminate/pagination": "^10.34.0", "illuminate/process": "^10.34.0", "illuminate/routing": "^10.34.0", - "illuminate/validation": "^10.34.0", + "illuminate/support": "^10.34.0", "illuminate/testing": "^10.34.0", "illuminate/translation": "^10.34.0", - "guzzlehttp/psr7": "^1.9.1|^2.4.5", - "http-interop/http-factory-guzzle": "^1.0.0", + "illuminate/validation": "^10.34.0", "league/commonmark": "^2.4", "mockery/mockery": "^1.6.2", "nikic/php-parser": "^4.18|^5.0", @@ -90,42 +90,46 @@ "ext-pdo_sqlite": "*", "bamarni/composer-bin-plugin": "^1.8", "composer/class-map-generator": "^1.0", - "illuminate/cache": "^10.34.0", "fakerphp/faker": "^1.21.0", + "illuminate/cache": "^10.34.0", "laravel/scout": "^9.8.0|^10.0.0", "orchestra/testbench": "^8.0.0", "symfony/var-dumper": "^6.3.0" }, "autoload": { + "exclude-from-classmap": [ + "dev/**.php", + "packages/*/src/**Test.php", + "packages/*/src/Testing/**.php", + "packages/testing/src/Package/**.php" + ], "files": [ "packages/eloquent/src/mixins.php", "packages/testing/src/mixins.php" ], "psr-4": { "LastDragon_ru\\LaraASP\\Core\\": "packages/core/src/", - "LastDragon_ru\\LaraASP\\Migrator\\": "packages/migrator/src/", - "LastDragon_ru\\LaraASP\\Testing\\": "packages/testing/src/", + "LastDragon_ru\\LaraASP\\Documentator\\": "packages/documentator/src/", "LastDragon_ru\\LaraASP\\Eloquent\\": "packages/eloquent/src/", "LastDragon_ru\\LaraASP\\Formatter\\": "packages/formatter/src/", - "LastDragon_ru\\LaraASP\\Spa\\": "packages/spa/src/", "LastDragon_ru\\LaraASP\\GraphQL\\": "packages/graphql/src/", "LastDragon_ru\\LaraASP\\GraphQLPrinter\\": "packages/graphql-printer/src/", + "LastDragon_ru\\LaraASP\\Migrator\\": "packages/migrator/src/", "LastDragon_ru\\LaraASP\\Serializer\\": "packages/serializer/src/", - "LastDragon_ru\\LaraASP\\Documentator\\": "packages/documentator/src/" - }, - "exclude-from-classmap": [ - "dev/**.php", - "packages/*/src/**Test.php", - "packages/*/src/Testing/**.php", - "packages/testing/src/Package/**.php" - ] + "LastDragon_ru\\LaraASP\\Spa\\": "packages/spa/src/", + "LastDragon_ru\\LaraASP\\Testing\\": "packages/testing/src/" + } }, "autoload-dev": { + "exclude-from-classmap": [ + "packages/*/docs", + "dev/**.php" + ], "psr-4": { - "LastDragon_ru\\LaraASP\\Dev\\App\\": "dev/App", - "LastDragon_ru\\LaraASP\\Dev\\PhpStan\\": "dev/PhpStan", "Larastan\\Larastan\\": "dev/Larastan", "LastDragon_ru\\LaraASP\\Core\\Docs\\": "packages/core/docs", + "LastDragon_ru\\LaraASP\\Dev\\App\\": "dev/App", + "LastDragon_ru\\LaraASP\\Dev\\PhpStan\\": "dev/PhpStan", "LastDragon_ru\\LaraASP\\Documentator\\Docs\\": "packages/documentator/docs", "LastDragon_ru\\LaraASP\\Eloquent\\Docs\\": "packages/eloquent/docs", "LastDragon_ru\\LaraASP\\Formatter\\Docs\\": "packages/formatter/docs", @@ -135,44 +139,38 @@ "LastDragon_ru\\LaraASP\\Serializer\\Docs\\": "packages/serializer/docs", "LastDragon_ru\\LaraASP\\Spa\\Docs\\": "packages/spa/docs", "LastDragon_ru\\LaraASP\\Testing\\Docs\\": "packages/testing/docs" - }, - "exclude-from-classmap": [ - "packages/*/docs", - "dev/**.php" - ] + } }, "extra": { - "laravel": { - "providers": [ - "LastDragon_ru\\LaraASP\\Migrator\\Provider", - "LastDragon_ru\\LaraASP\\Formatter\\Provider", - "LastDragon_ru\\LaraASP\\Spa\\Provider", - "LastDragon_ru\\LaraASP\\GraphQL\\Provider", - "LastDragon_ru\\LaraASP\\Serializer\\Provider", - "LastDragon_ru\\LaraASP\\Documentator\\Provider", - "LastDragon_ru\\LaraASP\\Eloquent\\Provider" - ] - }, "bamarni-bin": { "bin-links": false, "forward-command": false }, "lara-asp": { "ci": { + "optional-packages": [ + "laravel/scout" + ], "required-extensions": { - "league/flysystem": [ - "ext-fileinfo" - ], "illuminate/console": [ "ext-mbstring" - ] - }, - "optional-packages": { - "lastdragon-ru/lara-asp-graphql": [ - "laravel/scout" + ], + "league/flysystem": [ + "ext-fileinfo" ] } } + }, + "laravel": { + "providers": [ + "LastDragon_ru\\LaraASP\\Documentator\\Provider", + "LastDragon_ru\\LaraASP\\Eloquent\\Provider", + "LastDragon_ru\\LaraASP\\Formatter\\Provider", + "LastDragon_ru\\LaraASP\\GraphQL\\Provider", + "LastDragon_ru\\LaraASP\\Migrator\\Provider", + "LastDragon_ru\\LaraASP\\Serializer\\Provider", + "LastDragon_ru\\LaraASP\\Spa\\Provider" + ] } }, "scripts": { @@ -233,14 +231,14 @@ }, "replace": { "lastdragon-ru/lara-asp-core": "self.version", - "lastdragon-ru/lara-asp-migrator": "self.version", - "lastdragon-ru/lara-asp-testing": "self.version", + "lastdragon-ru/lara-asp-documentator": "self.version", "lastdragon-ru/lara-asp-eloquent": "self.version", "lastdragon-ru/lara-asp-formatter": "self.version", - "lastdragon-ru/lara-asp-spa": "self.version", "lastdragon-ru/lara-asp-graphql": "self.version", "lastdragon-ru/lara-asp-graphql-printer": "self.version", + "lastdragon-ru/lara-asp-migrator": "self.version", "lastdragon-ru/lara-asp-serializer": "self.version", - "lastdragon-ru/lara-asp-documentator": "self.version" + "lastdragon-ru/lara-asp-spa": "self.version", + "lastdragon-ru/lara-asp-testing": "self.version" } }