UNPKG

tsoa-custom-decorators

Version:

Build swagger-compliant REST APIs using TypeScript and Node

102 lines (101 loc) 3.53 kB
{ "name": "tsoa-custom-decorators", "description": "Build swagger-compliant REST APIs using TypeScript and Node", "version": "1.1.10-custom-decorators", "main": "./dist/index.js", "typings": "./dist/index.d.ts", "keywords": [ "typescript", "swagger", "node", "node.js", "codegen", "generation" ], "scripts": { "start": "tsc -w", "build": "npm run clean && tsc && npm run copy-templates", "copy-templates": "copyfiles -u 1 ./src/routeGeneration/templates/**/* ./dist", "clean": "rimraf dist && rimraf test/fixtures/routes.ts", "lint": "tslint --exclude=./node_modules/** ./src/**/*.ts ./tests/**/*.ts", "format": "tsfmt -r", "prepublish": "npm run build", "deploy": "npm version patch && npm publish", "postversion": "git push origin master", "routes-gen": "node ./dist/cli.js routes", "swagger-gen": "node ./dist/cli.js swagger", "routes-gen:hapi": "node ./dist/cli.js routes --configuration=hapi-tsoa.json", "routes-gen:koa": "node ./dist/cli.js routes --configuration=koa-tsoa.json", "routes-gen:custom": "node ./dist/cli.js routes --configuration=custom-tsoa.json", "routes-gen:inversify": "node ./dist/cli.js routes --configuration=inversify-tsoa.json", "pretest": "cross-env NODE_ENV=test npm run build && npm run swagger-gen && cross-env NODE_ENV=test npm run routes-gen && cross-env NODE_ENV=test npm run routes-gen:hapi && cross-env NODE_ENV=test npm run routes-gen:koa && cross-env NODE_ENV=test npm run routes-gen:custom && cross-env NODE_ENV=test npm run routes-gen:inversify && npm run lint", "test": "cross-env NODE_ENV=test mocha **/*.spec.ts --compilers ts:ts-node/register", "tsc": "tsc" }, "author": "Luke Autry <lukeautry@gmail.com> (http://www.lukeautry.com)", "license": "MIT", "dependencies": { "copyfiles": "1.2.0", "express": "^4.14.1", "handlebars": "^4.0.6", "handlebars-helpers": "^0.8.0", "lodash": "^4.17.4", "merge": "^1.2.0", "mkdirp": "^0.5.1", "moment": "^2.17.1", "tslint": "^4.4.2", "typescript": "^2.2.1", "typescript-formatter": "^5.1.0", "validator": "^7.0.0", "yargs": "^6.6.0" }, "devDependencies": { "@types/body-parser": "^0.0.34", "@types/chai": "^3.4.35", "@types/express": "^4.0.35", "@types/handlebars": "^4.0.31", "@types/hapi": "^16.0.0", "@types/koa": "^2.0.38", "@types/koa-bodyparser": "^3.0.23", "@types/koa-router": "^7.0.21", "@types/lodash": "^4.14.53", "@types/method-override": "^0.0.29", "@types/mime": "^0.0.29", "@types/minimatch": "^2.0.29", "@types/mkdirp": "^0.3.29", "@types/mocha": "^2.2.39", "@types/node": "^7.0.5", "@types/serve-static": "^1.7.31", "@types/superagent": "^2.0.36", "@types/supertest": "^2.0.0", "@types/validator": "^6.2.0", "@types/yargs": "^6.6.0", "body-parser": "^1.16.1", "chai": "^3.5.0", "copyfiles": "^1.2.0", "cross-env": "^3.2.4", "hapi": "^16.1.0", "inversify": "^3.1.0", "koa": "^2.0.1", "koa-bodyparser": "^3.2.0", "koa-router": "^7.0.1", "lodash.set": "^4.3.2", "method-override": "^2.3.7", "mocha": "^3.2.0", "reflect-metadata": "^0.1.10", "rimraf": "^2.6.1", "supertest": "^2.0.1", "ts-node": "^2.1.0" }, "repository": { "type": "git", "url": "https://github.com/lukeautry/tsoa.git" }, "bin": { "tsoa": "dist/cli.js" }, "engines": { "node": ">=6.0.0" }, "engineStrict": true }