epip-generate
Advanced tools
Comparing version 1.2.28 to 1.2.29
{ | ||
"name": "epip-generate", | ||
"version": "1.2.28", | ||
"version": "1.2.29", | ||
"description": "", | ||
@@ -21,3 +21,3 @@ "author": "", | ||
"start": "rimraf dist & npm run build & node dist\\main.js gen -t vue -o ./ -h http://localhost:8585/api/v1/swagger.json", | ||
"start:dev": "ts-node src/main.ts vue -o ./dist -h https://api.test.hemscap.com/v1/api/swagger.json -in jooooon -e", | ||
"start:dev": "ts-node src/main.ts vue -o ./dist -h https://api.test.hemscap.com/v1/api/swagger.json -in jooooon -t auth,admin", | ||
"start:debug": "nest start --debug --watch", | ||
@@ -24,0 +24,0 @@ "start:prod": "node dist/main", |
@@ -9,2 +9,3 @@ import { CommandRunner } from "nest-commander"; | ||
getSwaggerAddress(swgAddress: string): void; | ||
getTags(tags: string): void; | ||
getEnvironment(env: string): void; | ||
@@ -11,0 +12,0 @@ getInterceptorPath(env: string): void; |
@@ -28,2 +28,5 @@ "use strict"; | ||
} | ||
getTags(tags) { | ||
this.srv.tags = tags.split(","); | ||
} | ||
getEnvironment(env) { | ||
@@ -60,2 +63,11 @@ this.srv.environment = env; | ||
(0, nest_commander_1.Option)({ | ||
flags: '-t, --tags [string]', | ||
description: 'default is all tags', | ||
}), | ||
__metadata("design:type", Function), | ||
__metadata("design:paramtypes", [String]), | ||
__metadata("design:returntype", void 0) | ||
], VueGenCommander.prototype, "getTags", null); | ||
__decorate([ | ||
(0, nest_commander_1.Option)({ | ||
flags: '-e, --env [string]', | ||
@@ -62,0 +74,0 @@ description: 'environment key for baseUrl. defaule url is swagger\'s route', |
@@ -7,2 +7,3 @@ import { IFramework } from "../interfaces/framework.intterface"; | ||
swgAddress: string; | ||
tags: Array<string>; | ||
constructor(); | ||
@@ -9,0 +10,0 @@ run(): Promise<void>; |
@@ -47,2 +47,5 @@ "use strict"; | ||
const api = element[key1]; | ||
if (this.tags && api.tags.length && !this.tags.includes(api.tags[0].split("/")[0].trim())) { | ||
continue; | ||
} | ||
api.name = key; | ||
@@ -49,0 +52,0 @@ api.method = key1; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202841
1338