{"repo":"long-woo/stc","free":true,"listed":false,"github":"https://github.com/long-woo/stc","clone":"git clone https://github.com/long-woo/stc.git","description":"🔧 A tool for converting OpenApi/Swagger/Apifox into code.","language":"TypeScript","stars":50,"topics":["swagger","deno","openapi","apifox","aoc-2024-in-deno","code-generator"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"STC STC (Swagger Transform Code) is a tool for converting OpenApi/Swagger/Apifox into code. Features 🚧 Encapsulate the \"shared\" directory. - 🐹 Support for Swagger 2/3(OpenApi) and Apifox . - 💡 Support plug-in development. - 🐣 Built-in transformation languages: - TypeScript , almost equivalent to handwriting. Depends on axios , wx.request , fetch . xhr/ajax、ofetch planned - JavaScript , from TypeScript to it. - Dart , dependency on dio . - 🚧 Swift ... Quick start Download executable files download by system： - stc: Intel-based Mac - stc-m: M-series Mac - stc-linux：Linux - stc-win.exe: Windows NPM 1.Install the @lonu/stc npm package. 2.Open the project's package.json file and add the following command to scripts : Use ⚠️ Note: deno will not parse the character as the user's home directory. Existing Project Assume a project directory is: Axios 1. Find the directory of outDir , copy the entire shared directory to the directory of the axios module you encapsulated. 2. Open the shared axios index.ts file, copy the request method, and add it to the axios module you encapsulated. If it is not encapsulated, copy the index.ts file as a new file to avoid the problem of modification being overwritten. 3. Taking Vue as an example, add the following code to the main.ts file: Wechat 1. Find the directory of outDir , copy the entire directory of shared to the directory of the wechat module you encapsulated. 2. Open the shared wechat ​​index.ts file, copy the request method, and add it t","default_branch":null,"files":null,"tree":[],"storefront":"/r/long-woo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/long-woo/stc/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}