gradio/scripts/format_frontend.sh
Artin Mohammadi bdced314bc
Scripts become much easier to read and understand (#1918)
* Being nice to the user

* Front-end builder, CircleCI runner, and Gradio installer updated

* The testing scripts updated

* Front-end runner and the website launcher updated

* The formatters updated

* GitHub Actions and PyPI uploader scripts updated

* Updating the URLs

* Removing commented codes

* Delete a blank line
2022-08-01 15:17:03 -07:00

13 lines
203 B
Bash
Executable File

#!/bin/bash
cd "$(dirname ${0})/.."
source scripts/helpers.sh
pnpm_required
echo "Formatting the frontend... Also we'll do type checking with TypeScript."
cd ui
pnpm i
pnpm format:write
pnpm ts:check