19 lines
582 B
Bash
Executable File
19 lines
582 B
Bash
Executable File
#!/bin/bash
|
|
shopt -s extglob
|
|
|
|
docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate \
|
|
-i /local/dash_api.yaml \
|
|
--git-host=github.com \
|
|
--git-user-id=moustachioed \
|
|
--git-repo-id=dash \
|
|
--api-package dashclient \
|
|
--artifact-id dashclient \
|
|
--package-name dashclient \
|
|
-g typescript-fetch \
|
|
-o /local/api_client
|
|
# -p packageName=dashapi,featureCORS=true,outputAsLibrary=true,sourceFolder=dashapi \
|
|
# --invoker-package dashapi \
|
|
|
|
# rm -rf ../frontend/src/dashclient
|
|
# cp -r ./api_client/ ../frontend/src/dashclient
|