mirror of
https://github.com/labring/sealos.git
synced 2026-09-21 22:11:45 +08:00
* i18n * fix: update app patch * fix: hpa target * init data * lock * prettier * fix: ts
12 lines
243 B
Bash
12 lines
243 B
Bash
#!/bin/sh
|
|
STAGE_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.ts' '*.tsx' '*.scss' "*.json")
|
|
|
|
if test ${#STAGE_FILES} -gt 0
|
|
then
|
|
cd frontend/
|
|
echo 'Frontend formatting'
|
|
npm run format
|
|
else
|
|
echo 'No need to format'
|
|
fi
|
|
exit 0 |