From 43e4ad696cd6d8ed198a4788596a7e1bc11d4df1 Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Wed, 11 Feb 2026 21:12:34 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Add=20`setup`=20script=20and=20stre?= =?UTF-8?q?amline=20linting=20commands=20in=20`composer.json`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index f4ca2e7..a855096 100644 --- a/composer.json +++ b/composer.json @@ -69,6 +69,15 @@ } }, "scripts": { + "setup": [ + "composer install", + "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"", + "@php artisan key:generate", + "@php artisan ciphersweet:generate-key", + "@php artisan migrate --force", + "yarn install", + "yarn run build" + ], "post-autoload-dump": [ "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", "@php artisan package:discover --ansi" @@ -86,12 +95,15 @@ "@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 --kill-others" + "lint": [ + "pint --parallel" + ], + "test:lint": [ + "pint --parallel --test" ], "test": [ "@php artisan config:clear --ansi", + "@test:lint", "@php artisan test" ] },