Skip to content

Commit

Permalink
use latest tsoa version
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeautry committed Oct 26, 2016
1 parent 581637a commit 7278cf7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"build": "npm run clean && npm run lint && npm run swagger-gen && npm run routes-gen && tsc && npm run copy-swagger-ui",
"lint": "tslint ./src/**/*.ts",
"clean": "rimraf dist",
"swagger-gen": "tsoa swagger --swaggerDir=./dist --entryFile=./src/server.ts --host=localhost:3000 --basePath=/v1",
"routes-gen": "tsoa routes --entryFile=./src/server.ts --routesDir=./src --basePath=/v1",
"swagger-gen": "tsoa swagger",
"routes-gen": "tsoa routes",
"copy-swagger-ui": "ncp ./src/swagger-ui ./dist/swagger-ui",
"tsoa": "tsoa"
},
Expand All @@ -17,8 +17,8 @@
"dependencies": {
"body-parser": "^1.15.2",
"express": "^4.14.0",
"tsoa": "^0.0.50",
"method-override": "^2.3.6"
"method-override": "^2.3.6",
"tsoa": "^1.0.0"
},
"devDependencies": {
"@types/body-parser": "0.0.30",
Expand Down
13 changes: 13 additions & 0 deletions tsoa.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"swagger": {
"outputDirectory": "./dist",
"entryFile": "./src/server.ts",
"host": "localhost:3000",
"basePath": "/v1"
},
"routes": {
"basePath": "/v1",
"entryFile": "./src/server.ts",
"routesDir": "./src"
}
}

0 comments on commit 7278cf7

Please sign in to comment.