mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
0b2479517f
Simplify running frontend `gen:api`
15 lines
274 B
Bash
Executable File
15 lines
274 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Deleting generated apis..."
|
|
rm -rf src/openapi/apis
|
|
|
|
# Remove all but last line from index.ts
|
|
echo "Cleaning index.ts..."
|
|
echo "export * from './models';" > src/openapi/index.ts
|
|
echo '' >> src/openapi/index.ts
|
|
|
|
echo "Formatting..."
|
|
yarn fmt
|
|
|
|
echo "Done!"
|