root: update options for generating TS API (#3833)
This commit is contained in:
parent
f5ef92ca6f
commit
fd6a3d6230
4
Makefile
4
Makefile
|
@ -90,11 +90,11 @@ gen-client-ts:
|
||||||
-i /local/schema.yml \
|
-i /local/schema.yml \
|
||||||
-g typescript-fetch \
|
-g typescript-fetch \
|
||||||
-o /local/gen-ts-api \
|
-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-repo-id authentik \
|
||||||
--git-user-id goauthentik
|
--git-user-id goauthentik
|
||||||
mkdir -p web/node_modules/@goauthentik/api
|
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
|
cd gen-ts-api && npm i
|
||||||
\cp -rfv gen-ts-api/* web/node_modules/@goauthentik/api
|
\cp -rfv gen-ts-api/* web/node_modules/@goauthentik/api
|
||||||
|
|
||||||
|
|
|
@ -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
|
Reference in New Issue