forked from wuhan2020/rest-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
67 lines (67 loc) · 1.88 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
{
"name": "@wuhan2020/rest-api",
"version": "0.4.0",
"description": "Node.js Back-end project scaffold based on Koa, TypeScript & LeanCloud",
"author": "[email protected]",
"private": true,
"main": "dist/index.js",
"engines": {
"node": "^12.0.0"
},
"dependencies": {
"class-transformer": "^0.2.3",
"class-validator": "0.11.0",
"kcors": "^2.2.2",
"koa": "^2.11.0",
"koa-bodyparser": "^4.2.1",
"koa-logger": "^3.2.1",
"koa-multer": "^1.0.2",
"koa-router": "^8.0.6",
"leancloud-storage": "^3.15.0",
"leanengine": "^3.5.0",
"reflect-metadata": "^0.1.13",
"routing-controllers": "^0.8.0"
},
"devDependencies": {
"@types/koa": "^2.11.0",
"@types/koa-bodyparser": "^4.3.0",
"@types/koa-logger": "^3.1.1",
"@types/koa-multer": "^1.0.0",
"@types/koa-router": "^7.4.0",
"@typescript-eslint/eslint-plugin": "^2.17.0",
"@typescript-eslint/parser": "^2.17.0",
"eslint": "^6.8.0",
"husky": "^4.2.1",
"lint-staged": "^10.0.2",
"nodemon": "^2.0.2",
"prettier": "^1.19.1",
"ts-node": "^8.6.2",
"typescript": "^3.7.5"
},
"prettier": {
"singleQuote": true,
"tabWidth": 4
},
"lint-staged": {
"*.{md,json,yml}": [
"prettier --write"
],
"*.ts": [
"prettier --write",
"eslint --fix"
]
},
"scripts": {
"test": "lint-staged",
"dev": "nodemon --inspect --watch source/**/* -e ts --exec node -r ts-node/register source/",
"build": "tsc",
"deploy": "lint-staged && tsc && lean deploy",
"start": "node dist/"
},
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-push": "npm run build"
}
}
}