From d573b2731aecc59a4b4f950163f1a31d73d34695 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 9 Oct 2025 08:49:26 +0200 Subject: [PATCH] Add some debug logs to outdated and update dev scripts --- scripts/_helpers.sh | 4 ++++ scripts/dev/outdated | 6 ++++++ scripts/dev/update | 8 ++++++++ 3 files changed, 18 insertions(+) diff --git a/scripts/_helpers.sh b/scripts/_helpers.sh index 4ae2328a..42ffc8b4 100644 --- a/scripts/_helpers.sh +++ b/scripts/_helpers.sh @@ -8,3 +8,7 @@ function ensure_working_directory! { exit fi } + +function debug_msg { + echo "==> $1" +} diff --git a/scripts/dev/outdated b/scripts/dev/outdated index 6a118692..2da1798b 100755 --- a/scripts/dev/outdated +++ b/scripts/dev/outdated @@ -8,9 +8,15 @@ source "$(git rev-parse --show-toplevel)/scripts/_helpers.sh" ensure_working_directory! +debug_msg "Checking outdated NPM dependencies..." + npm outdated --prefix assets +debug_msg "Checking outdated tooling (tailwind, esbuild, sqlean)..." + # shellcheck disable=SC1010 mix do tailwind.check_version, esbuild.check_version, sqlean.check_version +debug_msg "Checking outdated mix dependencies" + mix hex.outdated --all diff --git a/scripts/dev/update b/scripts/dev/update index 1cebab13..37599a72 100755 --- a/scripts/dev/update +++ b/scripts/dev/update @@ -8,13 +8,21 @@ source "$(git rev-parse --show-toplevel)/scripts/_helpers.sh" ensure_working_directory! +debug_msg "Updating NPM dependencies..." + npm update --prefix assets +debug_msg "Updating tooling (tailwind, esbuild, sqlean)..." + # shellcheck disable=SC1010 mix do tailwind.update_version, esbuild.update_version, sqlean.update_version +debug_msg "Updating mix dependencies" + mix deps.update --all mix usage_rules.sync AGENTS.md --all --inline usage_rules:all --link-to-folder deps --remove-missing --yes +debug_msg "Updating gh extensions" + gh extension upgrade gfm-preview