From a0b4fc18e67bff16f976717883f2b407dce3f04e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Mon, 25 Jul 2022 16:03:16 +0200 Subject: [PATCH] Makefile: quiet the generator for JS and Python code The OpenAPI generator is very noisy, so it now logs to a file instead of to stdout. The file is git-ignored. This was easier than redirecting to `/dev/null`, as that's not available on Windows. --- .gitignore | 1 + Makefile | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 615cb948..cd3ce97f 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ __pycache__ .mypy_cache/ .openapi-generator/ .hugo_build.lock +.openapi-generator-*.log web/manager-api/dist/ web/static/ diff --git a/Makefile b/Makefile index 3b36b6c2..bba6f8ef 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ generate-py: --http-user-agent "Flamenco/${OAPI_VERSION} (Blender add-on)" \ -p generateSourceCodeOnly=true \ -p projectName=Flamenco \ - -p packageVersion="${OAPI_VERSION}" + -p packageVersion="${OAPI_VERSION}" > .openapi-generator-py.log # The generator outputs files so that we can write our own tests. We don't, # though, so it's better to just remove those placeholders. @@ -136,7 +136,7 @@ generate-js: -p apiPackage="${JS_API_PKG_NAME}" \ -p disallowAdditionalPropertiesIfNotPresent=false \ -p usePromises=true \ - -p moduleName=flamencoManager + -p moduleName=flamencoManager > .openapi-generator-js.log # Cherry-pick the generated sources, and remove everything else. # The only relevant bit is that the generated code depends on `superagent`,