Add journal frontend
This commit is contained in:
18
api/generate_ts_client.sh
Executable file
18
api/generate_ts_client.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user