chore(scripts): clean up setup; add start + update
This commit is contained in:
parent
555d611c2a
commit
4bc85bde57
10 changed files with 103 additions and 63 deletions
19
scripts/update.sh
Executable file
19
scripts/update.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -eu
|
||||
|
||||
echo "📦 Updating PHP packages..."
|
||||
composer update --no-progress --no-interaction 2>&1 | grep -Ev \
|
||||
"^(Writing lock file|Generating optimized autoload files|Loading composer|Nothing to modify|Use the \`composer fund\`|No security vulnerability|Installing dependencies from lock file|Package operations|[0-9]+ packages you are using are looking for funding)"
|
||||
|
||||
echo "🗳️ Updating root JS packages..."
|
||||
npm update --loglevel=silent --no-audit --no-fund | grep -v "up to date" || :
|
||||
|
||||
echo "🗃️ Updating CLI JS packages..."
|
||||
npm --prefix cli update --loglevel=silent --no-audit --no-fund | grep -v "up to date" || :
|
||||
|
||||
echo "🔍 Checking for new versions (root)..."
|
||||
ncu -u --loglevel silent 2>/dev/null | grep -v "All dependencies match" || :
|
||||
|
||||
echo "🔍 Checking for new versions (cli)..."
|
||||
ncu -u --cwd "./cli" --loglevel silent 2>/dev/null | grep -v "All dependencies match" || :
|
Loading…
Add table
Add a link
Reference in a new issue