UNPKG

swagger-codegen-typescript-koa2

Version:

Generate TypeScript Koa2 server skeleton codes from swagger spec.

121 lines (120 loc) 3.37 kB
{ "name": "swagger-codegen-typescript-koa2", "version": "0.1.4", "description": "Generate TypeScript Koa2 server skeleton codes from swagger spec.", "main": "dist/lib/index.js", "types": "dist/lib/index.d.ts", "bin": { "swagger-codegen-typescript-koa2": "dist/bin/swagger-codegen-typescript-koa2.js" }, "repository": { "type": "git", "url": "git+https://github.com/dai1975/swagger-codegen-typescript-koa2" }, "keywords": [ "swagger", "swagger-codegen", "typescript", "koa2" ], "author": "Daisuke Kanda <dai1975@gmail.com>", "license": "MIT", "bugs": { "url": "https://github.com/dai1975/swagger-codegen-typescript-koa2/issues" }, "homepage": "https://github.com/dai1975/swagger-codegen-typescript-koa2#readme", "files": [ "dist" ], "engines": { "node": ">=8.0.0" }, "scripts": { "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", "build:clean": "rimraf dist", "build:compile": "tsc", "build:copy:js": "cpx --verbose \"./src/bin/**/*.js\" ./dist/bin", "build:copy:mustache": "cpx --verbose \"./src/bin/**/*.mustache\" ./dist/bin", "build:copy": "npm-run-all -s build:copy:js build:copy:mustache", "build:doc": "typedoc --out docs --target es2017 --theme minimal --mode file src", "build": "npm-run-all -s build:clean build:compile build:copy", "prepare:clean": "rm -f readme.md~", "prepare": "npm-run-all build prepare:clean", "pack": "npm pack", "test": "jest", "test:watch": "jest --watch", "test:prod": "npm run lint && npm run test -- --coverage --no-cache", "deploy-docs": "ts-node tools/gh-pages-publish", "report-coverage": "cat ./coverage/lcov.info | coveralls", "commit": "git-cz", "semantic-release": "semantic-release", "semantic-release-prepare": "ts-node tools/semantic-release-prepare", "_precommit": "lint-staged" }, "lint-staged": { "{src,test}/**/*.ts": [] }, "config": { "commitizen": { "path": "node_modules/cz-conventional-changelog" } }, "jest": { "transform": { ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" }, "testEnvironment": "node", "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/test/" ], "coverageThreshold": { "global": { "branches": 90, "functions": 95, "lines": 95, "statements": 95 } }, "collectCoverage": true, "collectCoverageFrom": [ "src/*.{js,ts}" ] }, "prettier": { "semi": false, "singleQuote": true }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] }, "dependencies": { "bignumber.js": "^7.2.1", "debug": "^4.1.0", "fs": "0.0.1-security", "lodash.upperfirst": "^4.3.1", "mustache": "^3.0.0", "swagger2": "^1.0.1" }, "devDependencies": { "@types/debug": "0.0.31", "@types/lodash.upperfirst": "^4.3.4", "@types/mustache": "^0.8.32", "@types/node": "^10.12.0", "cpx": "^1.5.0", "dtsgen": "0.0.5", "husky": "^1.1.2", "npm-run-all": "^4.1.3", "prettier": "^1.14.3", "rimraf": "^2.6.2", "typescript": "^3.1.3" } }