-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
114 lines (114 loc) · 3.46 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
109
110
111
112
113
114
{
"name": "nodejs-rest-api-boilerplate",
"version": "1.0.0",
"main": "src/main.ts",
"author": "axnguyenit",
"license": "MIT",
"private": true,
"_moduleAliases": {
"~": "dist"
},
"contributors": [
{
"name": "Ax Nguyen",
"email": "axnguyen.it@gmail.com",
"url": "https://github.com/axnguyenit"
}
],
"scripts": {
"watch": "nodemon --watch './**/*.ts'",
"dev": "tsc-watch --onSuccess \"yarn watch\"",
"prebuild": "rimraf dist",
"build": "tsc",
"start": "node ./dist/main.js",
"postinstall": "husky install",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
"lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"typeorm": "env-cmd ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js",
"migration:generate": "npm run typeorm -- --dataSource=src/database/data-source.ts migration:generate",
"migration:create": "npm run typeorm -- migration:create",
"migration:run": "npm run typeorm -- --dataSource=src/database/data-source.ts migration:run",
"migration:revert": "npm run typeorm -- --dataSource=src/database/data-source.ts migration:revert",
"seed:run": "ts-node -r tsconfig-paths/register src/database/seeds/run-seed.ts",
"schema:drop": "npm run typeorm -- --dataSource=src/database/data-source.ts schema:drop"
},
"dependencies": {
"@types/nodemailer": "^6.4.7",
"bcryptjs": "^2.4.3",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"class-validator-jsonschema": "^5.0.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"express-basic-auth": "^1.2.1",
"http-status-codes": "^2.2.0",
"jsonwebtoken": "^9.0.0",
"module-alias": "^2.2.2",
"nodemailer": "^6.9.1",
"passport": "^0.6.0",
"passport-jwt": "^4.0.1",
"pg": "^8.9.0",
"reflect-metadata": "^0.1.13",
"routing-controllers": "^0.10.1",
"routing-controllers-openapi": "^4.0.0",
"swagger-ui-express": "^4.6.0",
"typeorm": "^0.3.11",
"uid": "^2.0.1",
"uuid": "^9.0.0"
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@types/bcryptjs": "^2.4.2",
"@types/express": "^4.17.17",
"@types/jsonwebtoken": "^9.0.1",
"@types/module-alias": "^2.0.1",
"@types/node": "^18.11.19",
"@types/swagger-ui-express": "^4.1.3",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"concurrently": "^7.6.0",
"env-cmd": "^10.1.0",
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-import-helpers": "^1.3.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-sonarjs": "^0.18.0",
"eslint-plugin-unicorn": "^45.0.2",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"nodemon": "^2.0.20",
"prettier": "^2.8.3",
"ts-node": "^10.9.1",
"tsc-watch": "^6.0.0",
"typescript": "^4.9.5"
},
"nodemonConfig": {
"watch": [
"src"
],
"ext": "ts",
"ignore": [
"src/public",
"dist",
"node_modules"
],
"execMap": {
"ts": "node -r ts-node/register"
}
},
"engines": {
"node": ">=14.0.0"
},
"lint-staged": {
"src/**/*.{ts, tsx}": [
"eslint --fix",
"prettier --write",
"git add ."
]
}
}