-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
143 lines (143 loc) · 4.19 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
"name": "hackers-ec-be",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"dev": "ts-node-dev --require dotenv/config src/index.ts",
"build": "tsc",
"start": "node --require dotenv/config dist/index.js",
"drop-all-tables": "psql -U your_username -d your_database_name -c \"SELECT 'DROP TABLE IF EXISTS \"' || tablename || '\" CASCADE;' FROM pg_tables WHERE schemaname = 'public'\" | psql -U your_username -d your_database_name",
"migrate": "npx sequelize-cli db:migrate",
"migrate:reset": "npx sequelize-cli db:migrate:undo:all && npm run migrate && npm run seed",
"migrate:down": "npx sequelize-cli db:migrate:undo:all",
"migrate:undo": "npx sequelize-cli db:migrate:undo",
"seed": "npx sequelize-cli db:seed:all",
"seed:undo": "npx sequelize-cli db:seed:undo:all",
"lint": "eslint .",
"beauty": "prettier . --write",
"check": "prettier . --check",
"prepare": "husky",
"precommit": "prettier . --write && eslint --fix .",
"run-tests": "cross-env NODE_ENV=test jest --detectOpenHandles --coverage --verbose --testTimeout=10000",
"pretest": "cross-env NODE_ENV=test npm run migrate:reset",
"run-after-tests": "cross-env NODE_ENV=test sequelize db:migrate:undo:all ",
"test": "npm-run-all run-tests run-after-tests --continue-on-error"
},
"keywords": [],
"license": "ISC",
"dependencies": {
"@react-pdf/renderer": "^3.4.4",
"@sendgrid/mail": "^8.1.3",
"@types/jsonwebtoken": "^9.0.6",
"@types/nodemailer": "^6.4.14",
"axios": "^1.7.2",
"base-64": "^1.0.0",
"bcrypt": "^5.1.1",
"cloudinary": "^2.2.0",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"event-emitter": "^0.3.5",
"express": "^4.19.2",
"express-session": "^1.18.0",
"joi": "^17.12.3",
"jsonwebtoken": "^9.0.2",
"moment": "^2.30.1",
"moment-timezone": "^0.5.45",
"multer": "^1.4.5-lts.1",
"node-cron": "^3.0.3",
"nodemailer": "^6.9.13",
"npm-run-all": "^4.1.5",
"passport": "^0.7.0",
"passport-google-oauth20": "^2.0.0",
"passport-local": "^1.0.0",
"passport-stub": "^1.1.1",
"pdf-creator-node": "^2.3.5",
"pg": "^8.11.5",
"pg-hstore": "^2.3.4",
"randomatic": "^3.1.1",
"reflect-metadata": "^0.2.2",
"sequelize": "^6.37.3",
"socket.io": "^4.7.5",
"socket.io-client": "^4.7.5",
"stripe": "^15.6.0",
"uuid": "^9.0.1",
"uuidv4": "^6.2.13"
},
"jest": {
"preset": "ts-jest",
"setupFiles": [
"<rootDir>/jest.setup.ts"
],
"testEnvironment": "node",
"coverageReporters": [
"json-summary",
"text",
"lcov"
],
"coveragePathIgnorePatterns": [
"/src/database/config",
"src/helpers",
"src/documention/index.ts",
"/src/utils",
"src/middlewares",
"src/services"
]
},
"devDependencies": {
"@eslint/js": "^9.0.0",
"@types/base-64": "^1.0.2",
"@types/bcrypt": "^5.0.2",
"@types/eslint": "^8.56.9",
"@types/event-emitter": "^0.3.5",
"@types/express": "^4.17.21",
"@types/express-session": "^1.18.0",
"@types/jest": "^29.5.12",
"@types/jsonwebtoken": "^9.0.6",
"@types/multer": "^1.4.11",
"@types/node": "^20.12.12",
"@types/node-cron": "^3.0.11",
"@types/nodemailer": "^6.4.14",
"@types/passport": "^1.0.16",
"@types/passport-google-oauth20": "^2.0.14",
"@types/passport-local": "^1.0.38",
"@types/pg": "^8.11.5",
"@types/randomatic": "^3.1.5",
"@types/react": "^18.3.3",
"@types/react-pdf": "^7.0.0",
"@types/supertest": "^6.0.2",
"@types/swagger-jsdoc": "^6.0.4",
"@types/swagger-ui-express": "^4.1.6",
"@types/uuid": "^9.0.8",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"cross-env": "^7.0.3",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"npm-run-all": "^4.1.5",
"passport-stub": "^1.1.1",
"prettier": "3.2.5",
"sequelize-cli": "^6.6.2",
"supertest": "^6.3.4",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"typescript": "^5.4.5",
"typescript-eslint": "^7.7.0"
},
"lint-staged": {
"*.{js,ts}": [
"eslint --fix",
"prettier --ignore-unknown --write",
"git add"
]
}
}