-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
134 lines (134 loc) · 4.82 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
{
"name": "modoco-backend",
"version": "0.0.1",
"description": "WebRTC signaling server using websocket",
"author": "Juhyeong Ko",
"private": true,
"license": "MIT",
"scripts": {
"ci": "rm -rf node_modules && yarn install --frozen-lockfile",
"prebuild": "rimraf dist",
"build": "nest build",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"db:dev:rm": "docker compose -f dockers/postgres/docker-compose.yml rm dev-db -s -f -v",
"db:dev:up": "docker compose -f dockers/postgres/docker-compose.yml up dev-db -d",
"db:dev:restart": "yarn db:dev:rm && yarn db:dev:up && sleep 1 && yarn prisma:dev:deploy",
"db:test:rm": "docker compose -f dockers/postgres/docker-compose.yml rm test-db -s -f -v",
"db:test:up": "docker compose -f dockers/postgres/docker-compose.yml up test-db -d",
"db:test:restart": "yarn db:test:rm && yarn db:test:up && sleep 1 && yarn prisma:test:deploy",
"prisma:dev:deploy": "prisma migrate deploy",
"prisma:test:deploy": "dotenv -e .test.env -- prisma migrate deploy",
"prisma:dev:studio": "yarn prisma studio",
"prisma:test:studio": "dotenv -e .test.env -- yarn prisma studio",
"redis:rm": "docker compose -f dockers/redis/docker-compose.yml rm -s -f -v",
"redis:up": "docker compose -f dockers/redis/docker-compose.yml up -d",
"docker:test:up": "yarn db:test:up; yarn redis:up;",
"docker:dev:up": "yarn db:dev:up; yarn redis:up;",
"docker:rm": "docker compose -f dockers/redis/docker-compose.yml rm -s -f -v; docker compose -f dockers/postgres/docker-compose.yml rm -s -f -v",
"start": "nest start",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"start:repl": "yarn start:dev --entryFile repl",
"pm2:deploy": "yarn ci && pm2 start app.json",
"pm2:start": "pm2 start app.json",
"pm2:stop": "pm2 stop app.json",
"pm2:destroy": "pm2 delete app.json",
"deploy": "yarn ci && yarn build && yarn start:prod",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"pretest:e2e": "yarn db:test:restart",
"test:e2e": "dotenv -e .test.env -- jest --watch --no-cache --config ./test/jest-e2e.json"
},
"dependencies": {
"@aws-sdk/client-auto-scaling": "^3.205.0",
"@aws-sdk/client-ses": "^3.186.0",
"@nestjs/axios": "^1.0.0",
"@nestjs/common": "^9.1.3",
"@nestjs/config": "^2.2.0",
"@nestjs/core": "^9.1.3",
"@nestjs/jwt": "^9.0.0",
"@nestjs/passport": "^9.0.0",
"@nestjs/platform-express": "^9.1.3",
"@nestjs/platform-socket.io": "^9.1.3",
"@nestjs/schedule": "^2.1.0",
"@nestjs/swagger": "^6.1.2",
"@nestjs/websockets": "^9.1.3",
"@prisma/client": "^4.4.0",
"@socket.io/redis-adapter": "^7.2.0",
"argon2": "^0.29.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.13.2",
"cross-env": "^7.0.3",
"helmet": "^6.0.0",
"joi": "^17.6.2",
"newrelic": "^9.1.0",
"passport": "^0.6.0",
"passport-github2": "^0.1.12",
"passport-google-oauth20": "^2.0.0",
"passport-jwt": "^4.0.0",
"passport-kakao": "^1.0.1",
"redis": "^4.3.1",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.5.7",
"uuid": "^9.0.0",
"webpack": "^5.74.0"
},
"devDependencies": {
"@nestjs/cli": "^9.1.4",
"@nestjs/schematics": "^9.0.3",
"@nestjs/testing": "^9.1.3",
"@types/cron": "^2.0.0",
"@types/express": "^4.17.14",
"@types/jest": "29.1.1",
"@types/newrelic": "^7.0.4",
"@types/node": "^18.8.2",
"@types/nodemailer": "^6.4.6",
"@types/passport-jwt": "^3.0.7",
"@types/passport-kakao": "^1.0.0",
"@types/supertest": "^2.0.11",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.5.3",
"@typescript-eslint/eslint-plugin": "^5.39.0",
"@typescript-eslint/parser": "^5.39.0",
"dotenv-cli": "^6.0.0",
"eslint": "^8.24.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "29.1.2",
"pactum": "^3.2.2",
"prettier": "^2.3.2",
"prisma": "^4.4.0",
"source-map-support": "^0.5.20",
"supertest": "^6.3.0",
"ts-jest": "29.0.3",
"ts-loader": "^9.4.1",
"ts-node": "^10.9.1",
"tsconfig-paths": "4.1.0",
"typescript": "^4.8.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node",
"moduleNameMapper": {
"^src/(.*)$": "<rootDir>/$1"
}
}
}