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:
parent
ab8ecc24cc
commit
a0b4fc18e6
1
.gitignore
vendored
1
.gitignore
vendored
@ -28,6 +28,7 @@ __pycache__
|
|||||||
.mypy_cache/
|
.mypy_cache/
|
||||||
.openapi-generator/
|
.openapi-generator/
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
|
.openapi-generator-*.log
|
||||||
|
|
||||||
web/manager-api/dist/
|
web/manager-api/dist/
|
||||||
web/static/
|
web/static/
|
||||||
|
4
Makefile
4
Makefile
@ -102,7 +102,7 @@ generate-py:
|
|||||||
--http-user-agent "Flamenco/${OAPI_VERSION} (Blender add-on)" \
|
--http-user-agent "Flamenco/${OAPI_VERSION} (Blender add-on)" \
|
||||||
-p generateSourceCodeOnly=true \
|
-p generateSourceCodeOnly=true \
|
||||||
-p projectName=Flamenco \
|
-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,
|
# 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.
|
# though, so it's better to just remove those placeholders.
|
||||||
@ -136,7 +136,7 @@ generate-js:
|
|||||||
-p apiPackage="${JS_API_PKG_NAME}" \
|
-p apiPackage="${JS_API_PKG_NAME}" \
|
||||||
-p disallowAdditionalPropertiesIfNotPresent=false \
|
-p disallowAdditionalPropertiesIfNotPresent=false \
|
||||||
-p usePromises=true \
|
-p usePromises=true \
|
||||||
-p moduleName=flamencoManager
|
-p moduleName=flamencoManager > .openapi-generator-js.log
|
||||||
|
|
||||||
# Cherry-pick the generated sources, and remove everything else.
|
# Cherry-pick the generated sources, and remove everything else.
|
||||||
# The only relevant bit is that the generated code depends on `superagent`,
|
# The only relevant bit is that the generated code depends on `superagent`,
|
||||||
|
Loading…
Reference in New Issue
Block a user