代码拉取完成,页面将自动刷新
{
"name": "swagger2ts-gen-cli",
"version": "2.0.9",
"private": false,
"license": "MIT",
"type": "module",
"description": "swagger2ts-gen-cli 是一个根据后端服务的 swagger-api 生成客户端代码的 Cli 工具。",
"main": "dist/index.js",
"types": "dist/src/main.d.ts",
"exports": {
".": {
"import": "./dist/main.js"
}
},
"bin": {
"swagger2ts-gen-cli": "index.js",
"sg-cli": "index.js"
},
"files": [
"index.js",
"dist"
],
"scripts": {
"clean": "rimraf dist && mkdir dist",
"build": "pnpm clean && cross-env NODE_ENV=devlopment rollup -c rollup.config.ts",
"build-link": "pnpm build && npm link",
"build:prod": "pnpm clean && cross-env NODE_ENV=production rollup -c rollup.config.ts",
"test:v2": "pnpm build && npx sg-cli gen -url http://172.18.10.58:30042/swagger-resources -ct typescript-fetch -o ./swagger2ts-generated/v2 -clean",
"test:v3": "pnpm build && npx sg-cli gen -url http://172.18.10.28:30060/v3/api-docs/swagger-config -ct typescript-axios -o ./swagger2ts-generated/v3 -clean",
"test:v2to3": "pnpm build && npx sg-cli gen -url http://172.18.10.58:30042/swagger-resources -c -ct typescript-axios -o ./swagger2ts-generated/v2to3 -clean",
"test:v3docs": "pnpm build && npx sg-cli gen -url http://172.18.10.28:30060/api/user/v3/api-docs -c -ct typescript-axios -o ./swagger2ts-generated/v3docs -clean",
"debug:v2": "pnpm build && node --inspect-brk index.js gen -url http://172.18.10.58:30042/swagger-resources -ct typescript-fetch -o ./swagger2ts-generated/v2 -clean",
"debug:v3": "pnpm build && node --inspect-brk index.js gen -url http://172.18.10.28:30060/v3/api-docs/swagger-config -ct typescript-axios -o ./swagger2ts-generated/v3 -clean",
"debug:v2to3": "pnpm build && node --inspect-brk index.js gen -url http://172.18.10.58:30042/swagger-resources -c -ct typescript-axios -o ./swagger2ts-generated/v2to3 -clean",
"debug:v3docs": "pnpm build && node --inspect-brk index.js gen -url http://172.18.10.28:30060/api/user/v3/api-docs -c -ct typescript-axios -o ./swagger2ts-generated/v3docs -clean",
"p": "pnpm build:prod && npm publish --tag latest"
},
"dependencies": {
"adm-zip": "^0.5.10",
"axios": "^1.3.5",
"chalk": "^5.2.0",
"commander": "^10.0.1",
"fs-extra": "^10.1.0",
"js-yaml": "^4.1.0",
"ora": "^6.3.0",
"rimraf": "^5.0.0"
},
"devDependencies": {
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.2",
"@types/adm-zip": "^0.5.0",
"@types/fs-extra": "^9.0.13",
"@types/js-yaml": "^4.0.5",
"@types/node": "^18.15.11",
"@typescript-eslint/eslint-plugin": "^5.37.0",
"@typescript-eslint/parser": "^5.37.0",
"cross-env": "^7.0.3",
"eslint": "^8.36.0",
"eslint-define-config": "^1.17.0",
"rollup": "^2.79.1",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.34.1",
"typescript": "^5.0.0"
},
"author": {
"name": "gkb",
"email": "958001996@qq.com",
"url": "https://gitee.com/gengkaibo/swagger2ts-gen-cli"
},
"repository": {
"type": "git",
"url": "https://gitee.com/gengkaibo/swagger2ts-gen-cli"
},
"engines": {
"node": ">= 16"
},
"keywords": [
"swagger",
"generator",
"cli",
"swagger2ts",
"typescript"
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。