1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-09 23:00:24 +01:00
twitter-openapi/.vscode/tasks.json
ふぁ cacf230b0d
update 7.13.0
Signed-off-by: ふぁ <yuki@yuki0311.com>
2025-05-01 00:29:06 +09:00

64 lines
2.2 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "build-task",
"type": "shell",
"osx": {
"command": [
"source .venv/bin/activate;",
"python3 tools/build.py;",
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
"python3 -m pip install ./python_generated;"
]
},
"linux": {
"command": [
"source .venv/bin/activate;",
"python3 tools/build.py;",
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
"python3 -m pip install ./python_generated;"
]
},
"windows": {
"command": [
".venv/Scripts/activate;",
"python tools/build.py;",
"java -jar openapi-generator-cli.jar generate -c test/python/openapi-generator-config.yaml -g python;",
"python -m pip install ./python_generated;"
]
}
},
{
"label": "init-venv",
"type": "shell",
"runOptions": {
"runOn": "folderOpen"
},
"osx": {
"command": [
"python3.10 -m venv .venv;",
".venv/bin/python3 -m pip install -r requirements.txt;",
"pip install urllib3>=2.1.0;",
"curl https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar -o openapi-generator-cli.jar;"
]
},
"linux": {
"command": [
"python3 -m venv .venv;",
".venv/bin/python3 -m pip install -r requirements.txt;",
"pip install urllib3>=2.1.0;",
"wget https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar -O openapi-generator-cli.jar;"
]
},
"windows": {
"command": [
"python -m venv .venv;",
".venv/Scripts/python -m pip install -r requirements.txt;",
"pip install urllib3>=2.1.0;",
"Invoke-WebRequest https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/7.13.0/openapi-generator-cli-7.13.0.jar -OutFile openapi-generator-cli.jar;"
]
}
}
]
}