-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
108 lines (108 loc) · 2.65 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
{
"name": "nodejs-typescript-koa",
"version": "1.0.0",
"description": "NodejsTypeScriptKoa",
"main": "index.js",
"repository": "https://github.com/krlls/Nodejs-TypeScript-Koa-boilerplate.git",
"author": "ksmi",
"license": "MIT",
"scripts": {
"test": "NODE_ENV=test jest --maxWorkers 2 src/test",
"jest-update": "jest --updateSnapshot",
"prepare": "husky install",
"dev": "ts-node-dev src/index.ts",
"build": "rimraf dist && tsc",
"start": "yarn build && node dist/index.js",
"lint": "eslint src",
"prettier": "prettier --write src",
"lint-fix": "eslint --fix src",
"fix": "yarn prettier && yarn lint-fix",
"build:docker": "docker build -t testnodeproject .",
"run:docker": "docker run -p 3000:3000 testnodeproject"
},
"dependencies": {
"axios": "^1.4.0",
"better-sqlite3": "^8.4.0",
"cli-color": "^2.0.3",
"dotenv": "^16.1.4",
"inversify": "^6.0.1",
"joi": "^17.9.2",
"koa": "^2.14.2",
"koa-body": "^6.0.1",
"koa-jwt": "^4.0.4",
"koa-router": "^12.0.0",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"typeorm": "^0.3.16"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.4",
"@types/cli-color": "^2.0.2",
"@types/jest": "^29.5.2",
"@types/koa": "^2.13.6",
"@types/koa-router": "^7.4.4",
"@types/lodash": "^4.14.195",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"husky": "^8.0.3",
"jest": "^29.5.0",
"lint-staged": "^13.2.2",
"prettier": "^2.8.8",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-node-dev": "^2.0.0",
"typescript": "^5.1.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"prettier --write",
"eslint --fix"
]
},
"jest": {
"moduleFileExtensions": [
"js",
"jsx",
"json",
"ts",
"tsx"
],
"collectCoverage": false,
"collectCoverageFrom": [
"**/*.{ts,js}",
"!**/node_modules/**",
"!**/build/**",
"!**/coverage/**"
],
"transform": {
"\\.ts$": "ts-jest"
},
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"coverageReporters": [
"text",
"text-summary"
],
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.(js|ts)x?$",
"testPathIgnorePatterns": [
"/node_modules/",
"/build/",
"/coverage/"
]
}
}