-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
170 lines (170 loc) · 6.2 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"name": "project-z",
"version": "0.2.1",
"description": "project-z",
"author": "[email protected]",
"private": true,
"license": "MIT",
"scripts": {
"build:all": "concurrently \"yarn build:api\" \"yarn build:manager\" \"yarn build:aggregator\"",
"deploy:start": "NODE_CONFIG_ENV=develop docker-compose -f docker-compose.yml up -d",
"publish:api:image": "sh scripts/docker/api-build-and-publish.sh project-z",
"publish:manager:image": "sh scripts/docker/api-build-and-publish.sh project-z-manager",
"deploy": "sh ./scripts/docker/deploy.sh",
"prebuild": "rimraf dist",
"format": "prettier --write \"apps/**/*.ts\" \"libs/**/*.ts\"",
"build:api": "nest build api",
"start:api": "nest start api",
"start:api:dev": "nest start api --watch",
"start:api:debug": "nest start api --debug --watch",
"start:api:prod": "node dist/apps/api/main",
"build:manager": "nest build manager",
"start:manager": "nest start manager",
"start:manager:dev": "nest start manager --watch",
"start:manager:debug": "nest start manager --debug --watch",
"start:manager:prod": "node dist/apps/manager/main",
"build:aggregator": "nest build aggregator",
"start:aggregator": "nest start aggregator",
"start:aggregator:dev": "nest start aggregator --watch",
"start:aggregator:debug": "nest start aggregator --debug",
"start:aggregator:prod": "node dist/apps/aggregator/main",
"lint": "eslint --cache \"{src,apps,libs,test,migrations}/**/*.ts\"",
"lint:fix": "eslint --cache \"{src,apps,libs,test,migrations}/**/*.ts\" --fix",
"test": "jest",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config apps/project-z/test/jest-e2e.json",
"migrate:create": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:create -n",
"migrate:run": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:run",
"migrate:revert": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js migration:revert",
"schema:sync": "ts-node -r tsconfig-paths/register ./node_modules/typeorm/cli.js schema:sync"
},
"dependencies": {
"@nestjs-modules/mailer": "^1.6.0",
"@nestjs/cli": "8.1.4",
"@nestjs/common": "8.1.2",
"@nestjs/core": "8.1.2",
"@nestjs/jwt": "^8.0.0",
"@nestjs/passport": "^8.0.1",
"@nestjs/platform-express": "8.1.2",
"@nestjs/schedule": "^1.1.0",
"@nestjs/swagger": "^5.1.0",
"@nestjs/typeorm": "^8.0.2",
"@sentry/node": "^6.19.3",
"@sentry/tracing": "^6.19.3",
"@types/bcrypt": "^5.0.0",
"@types/config": "^0.0.39",
"@types/cookie-parser": "^1.4.2",
"@types/cors": "^2.8.12",
"@types/lodash.keyby": "^4.6.6",
"@types/lodash.merge": "^4.6.6",
"@types/lodash.values": "^4.3.6",
"@types/node": "16.11.6",
"@types/nodemailer": "^6.4.4",
"@types/passport-jwt": "^3.0.6",
"@types/passport-local": "^1.0.34",
"@types/randomstring": "^1.1.7",
"@types/web-push": "^3.3.2",
"aws-sdk": "^2.1018.0",
"axios": "^0.26.1",
"axios-retry": "^3.2.4",
"bcrypt": "^5.0.1",
"cheerio": "^1.0.0-rc.10",
"class-transformer": "0.4.0",
"class-validator": "0.13.1",
"concurrently": "^6.3.0",
"config": "^3.3.6",
"cookie-parser": "^1.4.5",
"cors": "^2.8.5",
"date-fns": "^2.25.0",
"handlebars": "^4.7.7",
"helmet": "^4.6.0",
"lodash.keyby": "^4.6.0",
"lodash.merge": "^4.6.2",
"lodash.values": "^4.3.0",
"nodemailer": "^6.7.2",
"passport": "^0.5.0",
"passport-jwt": "^4.0.0",
"passport-local": "^1.0.0",
"pg": "^8.7.1",
"pm2": "^5.2.0",
"puppeteer": "^13.5.2",
"randomstring": "^1.2.1",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.2",
"rxjs": "7.4.0",
"swagger-ui-express": "^4.1.6",
"ts-loader": "9.2.6",
"ts-node": "10.4.0",
"typeorm": "^0.2.38",
"web-push": "^3.4.5",
"winston": "^3.3.3"
},
"devDependencies": {
"@nestjs/schematics": "8.0.4",
"@nestjs/testing": "8.1.2",
"@types/express": "4.17.13",
"@types/jest": "27.0.2",
"@types/multer": "1.4.7",
"@types/node": "16.11.6",
"@types/supertest": "2.0.11",
"@typescript-eslint/eslint-plugin": "^5.3.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.3.0",
"@typescript-eslint/parser": "^5.3.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-import-resolver-typescript": "^2.5.0",
"eslint-plugin-import": "2.25.2",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^7.0.2",
"jest": "27.3.1",
"lint-staged": "^11.2.6",
"prettier": "^2.4.1",
"supertest": "6.1.6",
"ts-jest": "27.0.7",
"ts-node": "10.4.0",
"tsconfig-paths": "3.11.0",
"typescript": "^4.5.5"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "./coverage",
"testEnvironment": "node",
"roots": [
"<rootDir>/apps/",
"<rootDir>/libs/"
],
"moduleNameMapper": {
"@libs/constants": "<rootDir>/libs/constants/src/$1",
"@libs/logger": "<rootDir>/libs/logger/src/$1",
"@libs/auth": "<rootDir>/libs/auth/src/$1",
"@libs/entities": "<rootDir>/libs/entities/src/$1",
"@libs/dtos": "<rootDir>/libs/dtos/src/$1",
"@libs/exceptions": "<rootDir>/libs/exceptions/src/$1",
"^@libs/files(|/.*)$": "<rootDir>/libs/files/src/$1",
"^@libs/decorators(|/.*)$": "<rootDir>/libs/decorators/src/$1",
"^@libs/chats(|/.*)$": "<rootDir>/libs/chats/src/$1",
"^@libs/mail-service(|/.*)$": "<rootDir>/libs/mail-service/src/$1",
"^@libs/web-push(|/.*)$": "<rootDir>/libs/web-push/src/$1",
"^@libs/config(|/.*)$": "<rootDir>/libs/config/src/$1",
"^@apps/aggregator(|/.*)$": "<rootDir>/apps/aggregator/src/$1",
"^@apps/manager(|/.*)$": "<rootDir>/apps/manager/src/$1",
"^@apps/api(|/.*)$": "<rootDir>/apps/api/src/$1",
"^@libs/helpers(|/.*)$": "<rootDir>/libs/helpers/src/$1"
}
},
"lint-staged": {
"*.ts": "yarn lint:fix"
}
}