@inversify-cn/swagger-express-ts
Version:
Generate and serve swagger.json
142 lines (141 loc) • 3.97 kB
JSON
{
"name": "@inversify-cn/swagger-express-ts",
"publishConfig": {
"access": "public"
},
"version": "1.1.11",
"description": "Generate and serve swagger.json",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
"scripts": {
"build:lib": "echo \"Building lib...\" && gulp build:lib",
"build": "echo \"Building...\" && gulp build",
"clean": "echo \"Cleaning...\" && gulp clean",
"lint": "tslint -c tslint.json --exclude 'node_modules/**/*.{j,t}s' '{lib,test}/**/*.ts'",
"test": "echo \"Testing...\" && npm run build && nyc mocha && jest",
"dev": "echo \"Developing...\" && nodemon",
"start": "echo \"Starting...\" && npm run build && ts-node --project tsconfig.json src/index.ts",
"publish": "npm publish dist",
"prepare": "npm run build:lib",
"e2e": "jest"
},
"repository": {
"type": "git",
"url": "https://github.com/inversify-cn/swagger-express-ts"
},
"author": "Olivier LIN-SI-CHENG",
"license": "MIT",
"keywords": [
"inversify",
"inversifyjs",
"swagger",
"swagger2",
"swagger-ui",
"typescript",
"expressjs",
"express",
"api rest",
"documentation",
"decorator",
"generator",
"swagger.json",
"json",
"rest"
],
"dependencies": {
"@types/body-parser": "^1.17.0",
"@types/compression": "0.0.35",
"@types/express": "^4.16.0",
"@types/helmet": "0.0.37",
"@types/inversify": "^2.0.33",
"@types/lodash": "^4.14.109",
"await-exec": "^0.1.2",
"body-parser": "^1.18.3",
"compression": "^1.7.2",
"express": "^4.16.4",
"helmet": "^3.12.1",
"inversify": "^4.13.0",
"inversify-express-utils": "5.0.0",
"lodash": "^4.17.10",
"reflect-metadata": "^0.1.10"
},
"devDependencies": {
"@types/chai": "^4.1.3",
"@types/mocha": "^2.2.48",
"@types/sinon": "^4.3.3",
"@types/supertest": "^2.0.10",
"chai": "^4.1.2",
"gulp": "^4.0.0",
"gulp-clean": "^0.4.0",
"gulp-sourcemaps": "^2.6.4",
"gulp-tslint": "^8.1.3",
"gulp-typescript": "^3.2.4",
"jest": "^26.6.3",
"mocha": "^4.0.1",
"nodemon": "^1.18.4",
"nyc": "^13.1.0",
"prettier": "1.12.0",
"pretty-quick": "^1.4.1",
"rimraf": "^2.6.2",
"sinon": "^4.5.0",
"source-map-support": "^0.5.9",
"supertest": "^6.1.1",
"swagger-ui-dist": "^3.17.0",
"ts-jest": "^26.4.4",
"ts-node": "^7.0.1",
"tslint": "^5.10.0",
"tslint-config-prettier": "^1.10.0",
"typescript": "^3.1.3"
},
"nyc": {
"include": [
"src/**/*.ts",
"lib/swagger-express-ts-lib/src/**/*.ts"
],
"exclude": [
"src/index.ts"
],
"extension": [
".ts"
],
"require": [
"ts-node/register"
],
"reporter": [
"html"
],
"sourceMap": true,
"instrument": true
},
"nodemonConfig": {
"restartable": "rs",
"watch": [
"src/**/*.ts",
"lib/**/*.ts"
],
"ext": "ts",
"ignore": [
"test/*",
"wiki/*",
"swagger/*",
"node_modules/*",
"dist/*"
],
"delay": "2500",
"exec": "gulp build && ts-node --project tsconfig.json src/index.ts"
},
"husky": {
"hooks": {
"post-commit": "git update-index --again",
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./src/**/*.ts": [
"yarn prettier",
"tslint",
"git add"
]
}
}