mirror of
https://github.com/bringout/oca-ocb-core.git
synced 2026-04-20 06:52:01 +02:00
vanilla 19.0
This commit is contained in:
parent
991d2234ca
commit
d1963a3c3a
3066 changed files with 1651266 additions and 922560 deletions
|
|
@ -1,18 +1,13 @@
|
|||
#!/bin/bash
|
||||
# run tooling only on branches that start with master to avoid linting noise in stable
|
||||
if [[ $(git branch --show-current) == master* || $(git branch --show-current) == 16.0* ]]; then
|
||||
tooling_dir=$(cd -- "$(dirname "$0")" &> /dev/null && cd .. && pwd)
|
||||
if ! cmp -s -- "$tooling_dir/_package.json" package.json; then
|
||||
echo "Your package.json is out of date, reloading the tooling using the reload script"
|
||||
"$tooling_dir/reload.sh"
|
||||
elif
|
||||
! cmp -s -- "$tooling_dir/_eslintignore" .eslintignore ||
|
||||
! cmp -s -- "$tooling_dir/_prettierignore" .prettierignore ||
|
||||
! cmp -s -- "$tooling_dir/_eslintrc.json" .eslintrc.json ||
|
||||
! cmp -s -- "$tooling_dir/_prettierrc.json" .prettierrc.json
|
||||
then
|
||||
echo "Some of your eslint/prettier config files are out of date, refreshing them using the refresh script"
|
||||
"$tooling_dir/refresh.sh"
|
||||
fi
|
||||
npm run format-staged
|
||||
tooling_dir=$(cd -- "$(dirname "$0")" &> /dev/null && cd .. && pwd)
|
||||
if ! cmp -s -- "$tooling_dir/_package.json" package.json; then
|
||||
echo "Your package.json is out of date, reloading the tooling using the reload script"
|
||||
"$tooling_dir/reload.sh"
|
||||
elif
|
||||
! cmp -s -- "$tooling_dir/_eslintignore" .eslintignore ||
|
||||
! cmp -s -- "$tooling_dir/_eslintrc.json" .eslintrc.json
|
||||
then
|
||||
echo "Some of your eslint/prettier config files are out of date, refreshing them using the refresh script"
|
||||
"$tooling_dir/refresh.sh"
|
||||
fi
|
||||
npm run format-staged
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue