debian-image-builder-frontend/api.sh
lucasgarfield 2776af4d6c API: Update readme and scripts
This commit updates the readme to reflect the use of
`@rtk-query/codegen` for generating API slice definitions and adds a new
script, `api.sh`, that is used to generate the API slices when the user
runs `npm run api`.
2023-07-28 15:05:08 +02:00

11 lines
354 B
Bash

#!/bin/bash
# Run commands in the background using & operator
npx @rtk-query/codegen-openapi ./api/config/image-builder.ts &
npx @rtk-query/codegen-openapi ./api/config/rhsm.ts &
npx @rtk-query/codegen-openapi ./api/config/contentSources.ts &
npx @rtk-query/codegen-openapi ./api/config/provisioning.ts &
# Wait for all background jobs to finish
wait