Add setup, lint, and test scripts to composer.json

- 🛠️ Introduce `setup` script for streamlined project initialization.
-  Add `lint` and `test` scripts for improved code quality and testing.
This commit is contained in:
HolgerHatGarKeineNode
2026-02-11 14:15:28 +01:00
parent 3c17613f77
commit 46ab985c8c

View File

@@ -60,6 +60,14 @@
} }
}, },
"scripts": { "scripts": {
"setup": [
"composer install",
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"@php artisan key:generate",
"@php artisan migrate --force",
"yarn install",
"yarn run build"
],
"post-autoload-dump": [ "post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi" "@php artisan package:discover --ansi"
@@ -79,6 +87,17 @@
"dev": [ "dev": [
"Composer\\Config::disableProcessTimeout", "Composer\\Config::disableProcessTimeout",
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74,#86efac\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan reverb:start\" \"php artisan pail --timeout=0\" \"yarn run dev\" --names=serve,queue,reverb,logs,vite --kill-others" "npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74,#86efac\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan reverb:start\" \"php artisan pail --timeout=0\" \"yarn run dev\" --names=serve,queue,reverb,logs,vite --kill-others"
],
"lint": [
"pint --parallel"
],
"test:lint": [
"pint --parallel --test"
],
"test": [
"@php artisan config:clear --ansi",
"@test:lint",
"@php artisan test"
] ]
}, },
"extra": { "extra": {