Merge branch 'patch-2025.01.7' into add-teleboy.ch

This commit is contained in:
freearhey 2025-01-31 20:21:00 +03:00
commit 51cb17c2c4
4 changed files with 10 additions and 4 deletions

View file

@ -3,6 +3,5 @@
channels_changed="$(git diff --staged --name-only --diff-filter=ACMR -- 'sites/**/*.channels.xml' | sed 's| |\\ |g')"
if [ ! -z "$channels_changed" ]; then
echo "npx eslint $channels_changed"
npm run channels:lint -- $channels_changed
fi

7
.husky/channels_validate.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/sh
channels_changed="$(git diff --staged --name-only --diff-filter=ACMR -- 'sites/**/*.channels.xml' | sed 's| |\\ |g')"
if [ ! -z "$channels_changed" ]; then
npm run channels:validate -- $channels_changed
fi

View file

@ -1,2 +1,3 @@
.husky/check_scripts.sh
.husky/check_channels.sh
.husky/scripts_lint.sh
.husky/channels_lint.sh
.husky/channels_validate.sh

View file

@ -3,6 +3,5 @@
scripts_changed="$(git diff --staged --name-only --diff-filter=ACMR -- 'tests/**/*.ts' 'tests/**/*.js' 'scripts/**/*.ts' 'scripts/**/*.mts' 'scripts/**/*.js' 'sites/**/*.js' 'sites/**/*.ts' | sed 's| |\\ |g')"
if [ ! -z "$scripts_changed" ]; then
echo "npx eslint $scripts_changed"
npx eslint $scripts_changed
fi