diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..e7f08302 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +.PHONY: specs +specs: + git clone https://github.com/sailpoint-oss/api-specs.git api-specs + +.PHONY: clean-specs +clean-specs: + rm -rf ./api-specs + +.PHONY: build +build: + rm -rf ./sdk-output/v3 + java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v3.yaml -g typescript-axios -o sdk-output/v3 --global-property skipFormModel=false --config sdk-resources/v3-config.yaml + rm -rf ./sdk-output/beta + java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.beta.yaml -g typescript-axios -o sdk-output/beta --global-property skipFormModel=false --config sdk-resources/beta-config.yaml --api-name-suffix BetaApi --model-name-suffix Beta + rm -rf ./sdk-output/v2 + java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.v2.yaml -g typescript-axios -o sdk-output/v2 --global-property skipFormModel=false --config sdk-resources/v2-config.yaml --api-name-suffix V2Api --model-name-suffix V2 + rm -rf ./sdk-output/cc + java -jar openapi-generator-cli.jar generate -i api-specs/idn/sailpoint-api.cc.yaml -g typescript-axios -o sdk-output/cc --global-property skipFormModel=false --config sdk-resources/cc-config.yaml --api-name-suffix CCApi --model-name-suffix CC + +.PHONY: test +test: + cd sdk-output + npm install + npm run build + npm run test \ No newline at end of file