mirror of
https://github.com/Unleash/unleash.git
synced 2024-10-28 19:06:12 +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!"
|