From 46ab985c8cfa1cfc192218a3bbc589fc272d1b12 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Wed, 11 Feb 2026 14:15:28 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20setup,=20lint,=20and=20test?= =?UTF-8?q?=20scripts=20to=20composer.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 🛠️ Introduce `setup` script for streamlined project initialization. - ✅ Add `lint` and `test` scripts for improved code quality and testing. --- composer.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/composer.json b/composer.json index 9bac08f..bc3607e 100644 --- a/composer.json +++ b/composer.json @@ -60,6 +60,14 @@ } }, "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": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" @@ -79,6 +87,17 @@ "dev": [ "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" + ], + "lint": [ + "pint --parallel" + ], + "test:lint": [ + "pint --parallel --test" + ], + "test": [ + "@php artisan config:clear --ansi", + "@test:lint", + "@php artisan test" ] }, "extra": {