web: improve api client versioning

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-08-23 10:09:56 +02:00
parent e998919097
commit 9469f86f65
3 changed files with 9 additions and 3 deletions

View File

@ -2,7 +2,7 @@
PWD = $(shell pwd)
UID = $(shell id -u)
GID = $(shell id -g)
TIMESTAMP = $(shell date "+%s")
NPM_VERSION = $(shell python -m scripts.npm_version)
all: lint-fix lint test gen
@ -43,7 +43,7 @@ gen-web:
-i /local/schema.yml \
-g typescript-fetch \
-o /local/web-api \
--additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=@goauthentik/api,npmVersion=${TIMESTAMP}.0.0
--additional-properties=typescriptThreePlus=true,supportsES6=true,npmName=@goauthentik/api,npmVersion=${NPM_VERSION}
gen-outpost:
docker run \