|
| 1 | +{ |
| 2 | + "version": "2.0.0", |
| 3 | + "tasks": [ |
| 4 | + { |
| 5 | + "type": "austin", |
| 6 | + "label": "Profile celery beat", |
| 7 | + "envFile": "${workspaceFolder}/.env", |
| 8 | + "options": { |
| 9 | + "cwd": "${workspaceFolder}/backend" |
| 10 | + }, |
| 11 | + "command": [ |
| 12 | + "sudo", |
| 13 | + "-E" |
| 14 | + ], |
| 15 | + "args": [ |
| 16 | + "celery", |
| 17 | + "-A", |
| 18 | + "onyx.background.celery.versioned_apps.beat", |
| 19 | + "beat", |
| 20 | + "--loglevel=INFO" |
| 21 | + ] |
| 22 | + }, |
| 23 | + { |
| 24 | + "type": "shell", |
| 25 | + "label": "Generate Onyx OpenAPI Python client", |
| 26 | + "cwd": "${workspaceFolder}/backend", |
| 27 | + "envFile": "${workspaceFolder}/.env", |
| 28 | + "options": { |
| 29 | + "cwd": "${workspaceFolder}/backend" |
| 30 | + }, |
| 31 | + "command": [ |
| 32 | + "openapi-generator" |
| 33 | + ], |
| 34 | + "args": [ |
| 35 | + "generate", |
| 36 | + "-i", |
| 37 | + "generated/openapi.json", |
| 38 | + "-g", |
| 39 | + "python", |
| 40 | + "-o", |
| 41 | + "generated/onyx_openapi_client", |
| 42 | + "--package-name", |
| 43 | + "onyx_openapi_client", |
| 44 | + ] |
| 45 | + }, |
| 46 | + { |
| 47 | + "type": "shell", |
| 48 | + "label": "Generate Typescript Fetch client (openapi-generator)", |
| 49 | + "envFile": "${workspaceFolder}/.env", |
| 50 | + "options": { |
| 51 | + "cwd": "${workspaceFolder}" |
| 52 | + }, |
| 53 | + "command": [ |
| 54 | + "openapi-generator" |
| 55 | + ], |
| 56 | + "args": [ |
| 57 | + "generate", |
| 58 | + "-i", |
| 59 | + "backend/generated/openapi.json", |
| 60 | + "-g", |
| 61 | + "typescript-fetch", |
| 62 | + "-o", |
| 63 | + "${workspaceFolder}/web/src/lib/generated/onyx_api", |
| 64 | + "--additional-properties=disallowAdditionalPropertiesIfNotPresent=false,legacyDiscriminatorBehavior=false,supportsES6=true", |
| 65 | + ] |
| 66 | + }, |
| 67 | + { |
| 68 | + "type": "shell", |
| 69 | + "label": "Generate TypeScript Client (openapi-ts)", |
| 70 | + "envFile": "${workspaceFolder}/.env", |
| 71 | + "options": { |
| 72 | + "cwd": "${workspaceFolder}/web" |
| 73 | + }, |
| 74 | + "command": [ |
| 75 | + "npx" |
| 76 | + ], |
| 77 | + "args": [ |
| 78 | + "openapi-typescript", |
| 79 | + "../backend/generated/openapi.json", |
| 80 | + "--output", |
| 81 | + "./src/lib/generated/onyx-schema.ts", |
| 82 | + ] |
| 83 | + }, |
| 84 | + { |
| 85 | + "type": "shell", |
| 86 | + "label": "Generate TypeScript Client (orval)", |
| 87 | + "envFile": "${workspaceFolder}/.env", |
| 88 | + "options": { |
| 89 | + "cwd": "${workspaceFolder}/web" |
| 90 | + }, |
| 91 | + "command": [ |
| 92 | + "npx" |
| 93 | + ], |
| 94 | + "args": [ |
| 95 | + "orval", |
| 96 | + "--config", |
| 97 | + "orval.config.js", |
| 98 | + ] |
| 99 | + } |
| 100 | + ] |
| 101 | +} |
0 commit comments