From 054b419685d90efb015a4ed7a354c3679b79e3a9 Mon Sep 17 00:00:00 2001 From: tncrazvan Date: Sat, 9 Dec 2023 14:52:50 +0100 Subject: [PATCH] chore(app): adding scripts that downloads psalm automatically (this is necessary because psalm still uses amphp v2) --- composer.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index df484ef7..b37c260c 100755 --- a/composer.json +++ b/composer.json @@ -31,11 +31,14 @@ "dev:watch": "php -dxdebug.mode=debug -dxdebug.start_with_request=yes ./bin/start --entry='./src/main.php' --libraries='./src/lib/' --resources='./resources/' --info --watch", "dev:build": "php -dxdebug.mode=off -dxdebug.start_with_request=no -dphar.readonly=0 ./build.phar --init-config", "download:build": "[ ! -f build.phar ] && wget https://github.com/tncrazvan/catpaw-build/releases/latest/download/build.phar || echo ''", + "download:psalm": "[ ! -f psalm.phar ] && wget wget https://github.com/vimeo/psalm/releases/latest/download/psalm.phar || echo ''", "post-autoload-dump": [ - "@download:build" + "@download:build", + "@download:psalm" ], "post-create-project-cmd": [ - "@download:build" + "@download:build", + "@download:psalm" ] }, "autoload": {