-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
79 lines (79 loc) · 2.27 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
{
"name": "nodejs-express-boilerplate",
"version": "1.0.0",
"description": "Project framework based on nodejs, express, mongodb",
"author": "[email protected]",
"license": "ISC",
"engines": {
"node": "20.x",
"npm": "10.x"
},
"main": "dist/server",
"repository": {
"type": "git",
"url": "git+https://github.com/nc-minh/nodejs-express-boilerplate"
},
"scripts": {
"prepare": "npx husky install",
"lint": "./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx",
"lint-fix": "./node_modules/.bin/eslint . --ext .js,.jsx,.ts,.tsx --fix",
"prettier": "prettier --write ./src/**/*.{js,ts,tsx,scss}",
"prettier:check": "prettier --list-different ./src/**/*.{js,ts,tsx,scss}",
"build": "rm -rf ./dist && ./node_modules/.bin/tsc",
"start": "cross-env NODE_PATH=./dist NODE_ENV=production node dist/server.js",
"dev": "cross-env NODE_PATH=./src NODE_ENV=dev nodemon src/server.ts"
},
"dependencies": {
"@types/compression": "^1.7.5",
"bcrypt": "^5.1.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"compression": "^1.7.4",
"dotenv": "16.3.1",
"dotenv-safe": "8.2.0",
"express": "4.18.2",
"helmet": "7.1.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.0.4",
"multer": "^1.4.5-lts.1",
"nocache": "4.0.0",
"winston": "^3.11.0"
},
"devDependencies": {
"@commitlint/cli": "18.4.3",
"@commitlint/config-conventional": "18.4.3",
"@types/bcrypt": "^5.0.2",
"@types/dotenv-safe": "8.1.5",
"@types/express": "4.17.21",
"@types/jsonwebtoken": "^9.0.5",
"@types/multer": "^1.4.11",
"@typescript-eslint/eslint-plugin": "6.16.0",
"@typescript-eslint/parser": "6.16.0",
"cross-env": "7.0.3",
"eslint": "8.56.0",
"eslint-config-airbnb-typescript": "17.1.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-prettier": "5.1.2",
"lint-staged": "15.2.0",
"nodemon": "3.0.2",
"prettier": "3.1.1",
"ts-node": "10.9.2",
"typescript": "5.3.3"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"./src/*.{js,jsx,ts,tsx}": [
"npm run lint",
"npm run lint-fix",
"npm run prettier",
"git add ."
],
"*.{md,json}": [
"prettier --write"
]
}
}