gradio/scripts/format_frontend.sh

12 lines
260 B
Bash
Raw Normal View History

#!/bin/bash
if [ -z "$(ls | grep CONTRIBUTING.md)" ]; then
echo "Please run the script from repo directory"
exit -1
else
echo "Formatting frontend with prettier, also type checking with TypeScript"
cd ui
2022-02-28 21:07:54 +08:00
pnpm i
pnpm format:write
pnpm ts:check
fi