Created
December 3, 2024 09:08
-
-
Save rokde/34b5dd2f7fb60fedfe2d9b929fdf1fef to your computer and use it in GitHub Desktop.
Laravel composer.json improved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://getcomposer.org/schema.json", | |
"name": "laravel/laravel", | |
"type": "project", | |
"description": "The skeleton application for the Laravel framework.", | |
"keywords": ["laravel", "framework"], | |
"license": "MIT", | |
"require": { | |
"php": "^8.2", | |
"laravel/framework": "^11.31", | |
"laravel/tinker": "^2.9" | |
}, | |
"require-dev": { | |
"fakerphp/faker": "^1.23", | |
"larastan/larastan": "^2.0", | |
"laravel/pail": "^1.1", | |
"laravel/pint": "^1.13", | |
"laravel/sail": "^1.26", | |
"mockery/mockery": "^1.6", | |
"nunomaduro/collision": "^8.1", | |
"pestphp/pest": "^3.0", | |
"pestphp/pest-plugin-laravel": "^3.0", | |
"pestphp/pest-plugin-type-coverage": "^3.2" | |
}, | |
"autoload": { | |
"psr-4": { | |
"App\\": "app/", | |
"Database\\Factories\\": "database/factories/", | |
"Database\\Seeders\\": "database/seeders/" | |
} | |
}, | |
"autoload-dev": { | |
"psr-4": { | |
"Tests\\": "tests/" | |
} | |
}, | |
"scripts": { | |
"post-autoload-dump": [ | |
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", | |
"@php artisan package:discover --ansi" | |
], | |
"post-update-cmd": [ | |
"@php artisan vendor:publish --tag=laravel-assets --ansi --force" | |
], | |
"post-root-package-install": [ | |
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" | |
], | |
"post-create-project-cmd": [ | |
"@php artisan key:generate --ansi", | |
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"", | |
"@php artisan migrate --graceful --ansi" | |
], | |
"dev": [ | |
"Composer\\Config::disableProcessTimeout", | |
"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" | |
], | |
"lint": [ | |
"pint" | |
], | |
"test:lint": [ | |
"pint --test" | |
], | |
"test:types": [ | |
"phpstan analyse" | |
], | |
"test:type-coverage": "pest --type-coverage --min=100", | |
"test:unit": "pest --parallel --ci --coverage --min=100.0", | |
"test": [ | |
"@test:lint", | |
"@test:types", | |
"@test:type-coverage", | |
"@test:unit" | |
] | |
}, | |
"extra": { | |
"laravel": { | |
"dont-discover": [] | |
} | |
}, | |
"config": { | |
"optimize-autoloader": true, | |
"preferred-install": "dist", | |
"sort-packages": true, | |
"allow-plugins": { | |
"pestphp/pest-plugin": true, | |
"php-http/discovery": true | |
} | |
}, | |
"minimum-stability": "stable", | |
"prefer-stable": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Additional commands are the sugar