2 Star 3 Fork 0

沉淀/swagger2ts-gen-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
package.json 3.27 KB
一键复制 编辑 原始数据 按行查看 历史
沉淀 提交于 2024-05-21 15:29 . fix: +1
{
"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"
]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
NodeJS
1
https://gitee.com/gengkaibo/swagger2ts-gen-cli.git
git@gitee.com:gengkaibo/swagger2ts-gen-cli.git
gengkaibo
swagger2ts-gen-cli
swagger2ts-gen-cli
master

搜索帮助