-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
159 lines (159 loc) · 5.29 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
{
"name": "@ti-broish/api",
"engines": {
"node": "^16",
"npm": "^8 || ^9"
},
"engineStrict": true,
"description": "Ti Broish API built with Nest TypeScript starter repository",
"license": "MIT",
"scripts": {
"prepare": "husky install",
"prebuild": "rimraf dist",
"build": "nest build",
"postbuild": "cp -r src/seeds/20* src/seeds/*.csv dist/seeds/",
"start": "nest start",
"prestart:dev": "mkdir -p dist/seeds && cp -r src/seeds/20* src/seeds/*.csv dist/seeds/",
"start:dev": "nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,scripts,test,@types}/**/*.{ts,js}\" --fix --quiet",
"lint:ci": "eslint \"{src,scripts,test,@types}/**/*.{ts,js}\" --fix-dry-run --quiet",
"test": "jest --passWithNoTests",
"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",
"test:e2e": "jest --config ./test/jest-e2e.json",
"typeorm": "typeorm-ts-node-esm",
"migration:create": "typeorm-ts-node-esm migration:create",
"migration:run": "typeorm-ts-node-esm -d ./src/database/typeorm.datasource.ts migration:run",
"migration:revert": "typeorm-ts-node-esm -d ./src/database/typeorm.datasource.ts migration:revert",
"seed:run": "typeorm-ts-node-esm -d ./src/database/typeorm-seeds.datasource.ts migration:run",
"seed:revert": "typeorm-ts-node-esm -d ./src/database/typeorm-seeds.datasource.ts migration:revert",
"firebase:token": "node ./scripts/get-token.js",
"deploy:production": "pm2 deploy ecosystem.config.json production update",
"deploy:staging": "pm2 deploy ecosystem.config.json staging update",
"deploy:prod:test": "pm2 deploy ecosystem.config.json prod-test update",
"postdeploy": "npm ci --only=production --ignore-scripts --no-audit --loglevel=error --cache .npm --prefer-offline --silent && npm run build && cp $PWD/../shared/.env $PWD/../shared/firebase.json $PWD/ && NODE_ENV=production npm run migration:run && pm2 startOrReload ecosystem.config.json"
},
"dependencies": {
"@anchan828/typeorm-decorators": "^1.0.56",
"@casl/ability": "^6.4.0",
"@nestjs/axios": "^2.0.0",
"@nestjs/cli": "^9.3.0",
"@nestjs/common": "^9.4.0",
"@nestjs/config": "^2.3.1",
"@nestjs/core": "^9.4.0",
"@nestjs/passport": "^9.0.3",
"@nestjs/platform-express": "^9.4.0",
"@nestjs/swagger": "^6.3.0",
"@nestjs/throttler": "^4.0.0",
"@nestjs/typeorm": "^9.0.1",
"@nestlab/google-recaptcha": "^3.3.0",
"@types/multer": "^1.4.7",
"axios": "^1.3.5",
"base64-img": "1.0.4",
"body-parser": "^1.20.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"cluster": "^0.7.7",
"csv-parse": "^5.3.6",
"dotenv": "^16.0.3",
"firebase": "^9.19.1",
"firebase-admin": "^11.6.0",
"install": "^0.13.0",
"joi": "^17.9.1",
"lodash": "^4.17.21",
"lodash.merge": "^4.6.2",
"mime-types": "^2.1.35",
"minio": "^7.0.33",
"moment": "^2.29.4",
"moment-timezone": "^0.5.43",
"nestjs-command": "^3.1.3",
"nestjs-i18n": "^10.2.6",
"nestjs-minio": "^2.3.4",
"nestjs-typeorm-paginate": "^4.0.3",
"passport": "^0.6.0",
"passport-http": "^0.3.0",
"passport-jwt": "^4.0.1",
"pg": "^8.10.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^5.0.0",
"rxjs": "^7.8.0",
"stream-transform": "^3.2.2",
"swagger-ui-express": "^4.6.2",
"typeorm": "^0.3.14",
"typeorm-naming-strategies": "^4.1.0",
"ulid": "^2.3.0"
},
"devDependencies": {
"@nestjs/schematics": "^9.1.0",
"@nestjs/testing": "^9.4.0",
"@types/cron": "^2.0.1",
"@types/dateformat": "^5.0.0",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.0",
"@types/lodash": "^4.14.192",
"@types/mime-types": "^2.1.1",
"@types/minio": "^7.0.18",
"@types/node": "^18.15.11",
"@types/passport-http": "^0.3.9",
"@types/passport-jwt": "^3.0.8",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3",
"jest": "^29.5.0",
"jsonlines": "^0.1.1",
"lint-staged": "^13.2.1",
"prettier": "^2.8.7",
"supertest": "^6.3.3",
"ts-jest": "^29.1.0",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.0.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": ".",
"modulePaths": [
"<rootDir>"
],
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.[tj]s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.[tj]s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"lint-staged": {
"(src|scripts|test|@types)/**/*.(ts|js)": [
"eslint --fix --quiet"
]
},
"main": "dist/main.js",
"directories": {
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ti-broish/api.git"
},
"keywords": [],
"author": "",
"bugs": {
"url": "https://github.com/ti-broish/api/issues"
},
"homepage": "https://tibroish.bg"
}