-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (18 loc) · 576 Bytes
/
Makefile
File metadata and controls
20 lines (18 loc) · 576 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.PHONY: build-sdk
build-sdk:
(cd $$KRATOS_DIR; make sdk)
cp $$KRATOS_DIR/spec/api.json ./contrib/sdk/api.json
npx @openapitools/openapi-generator-cli generate -i "./contrib/sdk/api.json" \
-g typescript-axios \
-o "./contrib/sdk/generated" \
--git-user-id ory \
--git-repo-id sdk \
--git-host github.com \
-c ./contrib/sdk/typescript.yml
(cd ./contrib/sdk/generated; npm i; npm run build)
rm -rf node_modules/@ory/kratos-client/*
cp -r ./contrib/sdk/generated/* node_modules/@ory/client
.PHONY: clean-sdk
clean-sdk:
rm -rf node_modules/@ory/client/
npm i