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`.
11 lines
354 B
Bash
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
|
|
|