gradio/scripts/format_frontend.sh
Ömer Faruk Özdemir 009796b2df Optional-Input-Clarification
- format frontend
- add format_frontend.sh script
2022-02-17 18:54:07 +03:00

11 lines
251 B
Bash

#!/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
pnpm format:write
pnpm ts:check
fi