Rename scripts and make messages consistent

MAILPOET-4237
This commit is contained in:
John Oleksowicz
2024-01-31 13:55:53 -06:00
committed by John Oleksowicz
parent 97f811390d
commit 52397951d8
3 changed files with 6 additions and 6 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/sh
source $PWD/.env
if [ "$MP_GIT_HOOKS_ENABLE" != "true" ]; then
echo "MP_GIT_HOOKS_ENABLE is not set to 'true', skipping lint-staged-css."
exit 0
fi
if [ "$MP_GIT_HOOKS_STYLELINT" = "true" ]; then
pnpm run stylelint $@
else
echo "MP_GIT_HOOKS_STYLELINT is not set to 'true', skipping stylelint."
fi