generated from idea2app/NodeTS-LeanCloud
-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
68 lines (68 loc) · 1.93 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
{
"name": "@wuhan2020/rest-api",
"version": "2.0.0",
"description": "Node.js Back-end project scaffold based on Koa, TypeScript & LeanCloud",
"author": "[email protected]",
"private": true,
"main": "dist/index.js",
"engines": {
"node": ">=20"
},
"dependencies": {
"@koa/cors": "^5.0.0",
"@koa/multer": "^3.0.2",
"@koa/router": "^13.0.0",
"class-transformer": "^0.5.1",
"class-validator": "0.14.1",
"koa": "^2.15.3",
"koa-bodyparser": "^4.4.1",
"koa-logger": "^3.2.1",
"leancloud-storage": "^3.15.0",
"leanengine": "^3.8.0",
"reflect-metadata": "^0.2.2",
"routing-controllers": "^0.10.4",
"typeorm": "^0.3.20"
},
"devDependencies": {
"@types/koa": "^2.15.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-logger": "^3.1.5",
"@types/koa__multer": "^2.0.7",
"@typescript-eslint/eslint-plugin": "^8.5.0",
"@typescript-eslint/parser": "^8.5.0",
"eslint": "^8.57.0",
"husky": "^9.1.5",
"lint-staged": "^15.2.10",
"nodemon": "^3.1.4",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"typescript": "~5.6.2"
},
"prettier": {
"singleQuote": true,
"tabWidth": 4,
"overrides": [
{
"files": "*.yml",
"options": {
"tabWidth": 2
}
}
]
},
"lint-staged": {
"*.{md,json,yml}": "prettier --write",
"*.ts": [
"prettier --write",
"eslint --fix"
]
},
"scripts": {
"prepare": "husky",
"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/"
}
}