-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathpackage.json
87 lines (87 loc) · 2.53 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
{
"name": "admin-server",
"version": "1.0.0",
"description": "server",
"author": "guojun",
"scripts": {
"dev": "cross-env NODE_ENV=development nodemon --exec ts-node src/app.ts",
"build-ts": "tsc",
"build:test": "rm -fr dist && npm run lint && npm run build-ts",
"serve:test": "cross-env NODE_ENV=development pm2 startOrReload pm2-start.json --no-daemon",
"build:production": "rm -fr dist && npm run lint && npm run build-ts",
"serve:production": "cross-env NODE_ENV=production pm2 startOrReload pm2-start.json --no-daemon",
"format": "prettier --write \"src/**/*.ts\" ",
"lint": "eslint \"src/**/*.ts\" --fix",
"stop": "pm2 status && pm2 stop all"
},
"keywords": [],
"license": "MIT",
"repository": {
"type": "git",
"url": "git@gitlab.xunlei.cn:xl-f2e/xl-account.git"
},
"dependencies": {
"form-data": "^4.0.0",
"ip": "^1.1.5",
"joi": "^17.4.0",
"js-md5": "^0.7.3",
"jsonwebtoken": "^8.5.1",
"koa": "^2.11.0",
"koa-body": "^4.2.0",
"koa-bodyparser": "^4.2.1",
"koa-helmet": "^6.1.0",
"koa-jwt": "^4.0.1",
"koa-mount": "^4.0.0",
"koa-router": "^8.0.8",
"koa-session": "^6.2.0",
"koa-static": "^5.0.0",
"koa2-cors": "^2.0.6",
"log4js": "^6.3.0",
"mysql2": "^2.1.0",
"path": "^0.12.7",
"query-string": "^7.0.1",
"sequelize": "^5.21.5"
},
"devDependencies": {
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@types/ip": "^1.1.0",
"@types/js-md5": "^0.4.2",
"@types/jsonwebtoken": "^8.5.2",
"@types/koa": "^2.13.3",
"@types/koa-bodyparser": "^4.3.1",
"@types/koa-mount": "^4.0.0",
"@types/koa-router": "^7.4.2",
"@types/koa-static": "^4.0.1",
"@types/koa2-cors": "^2.0.1",
"@types/swagger-jsdoc": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.27.0",
"cross-env": "^7.0.3",
"eslint": "^7.26.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "4.2.5",
"koa2-swagger-ui": "^5.1.0",
"lint-staged": "10.2.9",
"nodemon": "^2.0.7",
"pm2": "^5.1.0",
"prettier": "^2.3.0",
"swagger-jsdoc": "^6.1.0",
"ts-node": "^10.0.0",
"typescript": "^4.3.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"src/**/*.{ts,.tsx}": [
"prettier --trailing-comma es5 --single-quote --write",
"yarn lint",
"git add ."
]
}
}