Rename scripts and make messages consistent
MAILPOET-4237
This commit is contained in:
committed by
John Oleksowicz
parent
97f811390d
commit
52397951d8
@@ -17,8 +17,8 @@
|
|||||||
"prepare": "cd .. && husky install"
|
"prepare": "cd .. && husky install"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{scss,css}": "tasks/lint-staged-styles.sh",
|
"*.{scss,css}": "tasks/lint-staged-css.sh",
|
||||||
"*.{js,jsx,ts,tsx}": "tasks/lint-staged-scripts.sh",
|
"*.{js,jsx,ts,tsx}": "tasks/lint-staged-js.sh",
|
||||||
"*.php": "tasks/lint-staged-php.sh"
|
"*.php": "tasks/lint-staged-php.sh"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@@ -3,12 +3,12 @@
|
|||||||
source $PWD/.env
|
source $PWD/.env
|
||||||
|
|
||||||
if [ "$MP_GIT_HOOKS_ENABLE" != "true" ]; then
|
if [ "$MP_GIT_HOOKS_ENABLE" != "true" ]; then
|
||||||
echo "MP_GIT_HOOKS_ENABLE is not set to 'true'. Skipping lint-staged-scripts."
|
echo "MP_GIT_HOOKS_ENABLE is not set to 'true', skipping lint-staged-css."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MP_GIT_HOOKS_STYLELINT" = "true" ]; then
|
if [ "$MP_GIT_HOOKS_STYLELINT" = "true" ]; then
|
||||||
pnpm run stylelint $@
|
pnpm run stylelint $@
|
||||||
else
|
else
|
||||||
echo "MP_GIT_HOOKS_STYLELINT not set to 'true', skipping stylelint"
|
echo "MP_GIT_HOOKS_STYLELINT is not set to 'true', skipping stylelint."
|
||||||
fi
|
fi
|
@@ -3,12 +3,12 @@
|
|||||||
source $PWD/.env
|
source $PWD/.env
|
||||||
|
|
||||||
if [ "$MP_GIT_HOOKS_ENABLE" != "true" ]; then
|
if [ "$MP_GIT_HOOKS_ENABLE" != "true" ]; then
|
||||||
echo "MP_GIT_HOOKS_ENABLE is not set to 'true'. Skipping lint-staged-scripts."
|
echo "MP_GIT_HOOKS_ENABLE is not set to 'true', skipping lint-staged-js"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$MP_GIT_HOOKS_ESLINT" = "true" ]; then
|
if [ "$MP_GIT_HOOKS_ESLINT" = "true" ]; then
|
||||||
eslint --max-warnings 0 $@
|
eslint --max-warnings 0 $@
|
||||||
else
|
else
|
||||||
echo "MP_GIT_HOOKS_ESLINT not set to 'true', skipping eslint"
|
echo "MP_GIT_HOOKS_ESLINT is not set to 'true', skipping eslint"
|
||||||
fi
|
fi
|
Reference in New Issue
Block a user