-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
127 lines (127 loc) · 3.78 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
{
"name": "restful-typescript-koa",
"version": "1.0.0",
"description": "A best practices RESTful API using NodeJS, KOA, Typescript and TypeORM. Middleware uses JWT, CORS, Winston Logger and Swagger API docs",
"main": "dist/server.js",
"scripts": {
"watch-server": "nodemon --watch src -e ts,tsx --exec ts-node src/server.ts",
"build-ts": "tsc",
"copy-static-assets": "ts-node copy-static-assets.ts",
"build": "npm run lint && npm run build-ts && npm run copy-static-assets",
"start": "node dist/server.js",
"test": "cross-env NODE_ENV=test TS_NODE_FILES=true mocha --timeout 5000 --exit --require ts-node/register --colors 'test/**/*.spec.ts'",
"test-one": "cross-env NODE_ENV=test TS_NODE_FILES=true mocha --timeout 5000 --exit --require ts-node/register --colors",
"lint": "tsc --noEmit && eslint \"**/*.ts\" --quiet --fix",
"lint-fix": "eslint \"**/*.ts\" --quiet --fix",
"coverage": "nyc npm run test",
"generate-index-page": "cat README.md | npx marked -o public/readme.html"
},
"engines": {
"node": "14.x.x",
"npm": "6.x.x"
},
"author": "Emmanuel Nsubuga Kyeyune",
"license": "MIT",
"homepage": "https://github.com/emmanuelnk/restful-typescript-koa#readme",
"keywords": [
"typescript",
"koa",
"koa2",
"jwt",
"winston",
"boilerplate",
"typeORM",
"mongo",
"ajv",
"helmet",
"sql",
"api rest",
"heroku",
"cors",
"github actions"
],
"repository": "github:emmanuelnk/restful-typescript-koa",
"devDependencies": {
"@types/chai": "^4.2.14",
"@types/chai-as-promised": "^7.1.3",
"@types/chai-json-schema": "^1.4.6",
"@types/cron": "^1.7.2",
"@types/jsonwebtoken": "^8.5.0",
"@types/koa": "2.0.49",
"@types/koa-bodyparser": "^4.3.0",
"@types/koa-helmet": "^3.1.2",
"@types/koa__cors": "^3.0.1",
"@types/koa__router": "^8.0.2",
"@types/mocha": "^8.0.3",
"@types/mongodb": "^3.5.31",
"@types/node": "^12.12.6",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-json-schema": "^1.5.1",
"cross-env": "^7.0.2",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.14.0",
"eslint-plugin-jsdoc": "^30.7.7",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-unicorn": "^23.0.0",
"husky": "^4.3.0",
"jsonwebtoken": "^8.5.1",
"lint-staged": "^10.4.2",
"mocha": "^8.2.0",
"nodemon": "^2.0.2",
"nyc": "^15.1.0",
"prettier": "^2.1.2",
"supertest": "^5.0.0",
"ts-node": "^8.8.2",
"typescript": "^4.0.5"
},
"dependencies": {
"@koa/cors": "^3.0.0",
"@koa/router": "^8.0.8",
"@types/bcryptjs": "^2.4.2",
"@types/find-root": "^1.1.2",
"@types/html-minifier": "^4.0.0",
"@types/koa-ratelimit": "^4.2.2",
"@types/koa-send": "^4.1.2",
"@types/lodash": "^4.14.162",
"@types/shelljs": "^0.8.8",
"@types/shortid": "0.0.29",
"ajv": "^7.0.0-beta.2",
"ajv-formats": "^0.4.0",
"bcryptjs": "^2.4.3",
"class-validator": "^0.11.1",
"dotenv": "^8.2.0",
"find-root": "^1.1.0",
"html-minifier": "^4.0.0",
"jwt-blacklist": "^0.1.2",
"koa": "^2.11.0",
"koa-bodyparser": "^4.3.0",
"koa-helmet": "^5.2.0",
"koa-jwt": "^3.6.0",
"koa-ratelimit": "^4.2.1",
"koa-send": "^5.0.1",
"koa-swagger-decorator": "^1.5.16",
"lodash": "^4.17.20",
"marked": "^1.2.2",
"mongodb": "^3.6.2",
"phonetic": "^0.1.1",
"reflect-metadata": "^0.1.13",
"shelljs": "^0.8.4",
"shortid": "^2.2.16",
"typeorm": "^0.2.24",
"winston": "^3.2.1"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run test"
}
},
"lint-staged": {
"*.{ts}": [
"eslint --fix"
]
}
}