Skip to content

Commit

Permalink
root: update options for generating TS API (goauthentik#3833)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu authored Oct 21, 2022
1 parent f5ef92c commit fd6a3d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ gen-client-ts:
-i /local/schema.yml \
-g typescript-fetch \
-o /local/gen-ts-api \
--additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=@goauthentik/api,npmVersion=${NPM_VERSION} \
-c /local/scripts/api-ts-config.yaml \
--additional-properties=npmVersion=${NPM_VERSION} \
--git-repo-id authentik \
--git-user-id goauthentik
mkdir -p web/node_modules/@goauthentik/api
\cp -fv scripts/web_api_readme.md gen-ts-api/README.md
cd gen-ts-api && npm i
\cp -rfv gen-ts-api/* web/node_modules/@goauthentik/api

Expand Down
12 changes: 12 additions & 0 deletions scripts/api-ts-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
templateDir: /local/scripts/api-ts-templates/
additionalProperties:
typescriptThreePlus: true
supportsES6: true
npmName: "@goauthentik/api"
fileContentDataType: Blob
enumUnknownDefaultCase: true
useObjectParameters: true
files:
README.mustache:
templateType: SupportingFiles
destinationFilename: README.md
File renamed without changes.

0 comments on commit fd6a3d6

Please sign in to comment.