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.
This commit is contained in:
Sybren A. Stüvel 2022-07-25 16:03:16 +02:00
parent ab8ecc24cc
commit a0b4fc18e6
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored

@ -28,6 +28,7 @@ __pycache__
.mypy_cache/
.openapi-generator/
.hugo_build.lock
.openapi-generator-*.log
web/manager-api/dist/
web/static/

@ -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`,