-
Notifications
You must be signed in to change notification settings - Fork 51
/
package.json
140 lines (140 loc) · 4.76 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
{
"name": "nest-hackathon-starter",
"version": "0.1.0",
"description": "Hackathon starter project for NestJS.",
"repository": {
"type": "git",
"url": "https://github.com/ahmetuysal/nest-hackathon-starter"
},
"author": "Ahmet Uysal",
"license": "MIT",
"scripts": {
"build": "rimraf dist && tsc -p tsconfig.build.json",
"clean": "rimraf dist",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"start": "dotenv -e env/local.env -- nest start",
"start:dev": "dotenv -e env/local.env -- nest start --watch",
"start:debug": "dotenv -e env/local.env -- nest start --debug --watch",
"start:prod": "dotenv -e env/production.env -- node dist/main",
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
"test": "dotenv -e env/test.env -- jest",
"test:watch": "dotenv -e env/test.env -- jest --watch",
"test:cov": "dotenv -e env/test.env -- jest --coverage",
"test:debug": "dotenv -e env/test.env -- node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "dotenv -e env/test.env -- jest --config ./test/jest-e2e.json",
"migrate:dev": "dotenv -e env/local.env -- prisma migrate dev --preview-feature",
"migrate:dev:create": "dotenv -e env/local.env -- prisma migrate dev --create-only --preview-feature",
"migrate:dev:pull": "dotenv -e env/local.env -- prisma db pull",
"migrate:reset": "dotenv -e env/local.env -- prisma migrate reset --preview-feature",
"migrate:deploy:prod": "dotenv -e env/production.env -- npx prisma migrate deploy --preview-feature",
"migrate:deploy:dev": "dotenv -e env/dev.env -- npx prisma migrate deploy --preview-feature",
"migrate:status": "npx prisma migrate status --preview-feature",
"migrate:resolve": "npx prisma migrate resolve --preview-feature",
"prisma:studio": "npx prisma studio",
"prisma:generate": "npx prisma generate",
"prisma:generate:watch": "npx prisma generate --watch",
"postinstall": "npm run prisma:generate"
},
"lint-staged": {
"*.{js,ts}": [
"cross-env NODE_ENV=development eslint --cache",
"dotenv -e env/test.env -- cross-env NODE_ENV=test jest --bail --findRelatedTests"
],
"{*.json,.{prettierrc}}": [
"prettier --ignore-path .eslintignore --parser json --write"
],
"*.{html,md,yml}": [
"prettier --ignore-path .eslintignore --single-quote --write"
]
},
"dependencies": {
"@nestjs/common": "^8.1.1",
"@nestjs/config": "1.0.2",
"@nestjs/core": "^8.1.1",
"@nestjs/jwt": "^8.0.0",
"@nestjs/passport": "^8.0.1",
"@nestjs/platform-express": "^8.1.1",
"@nestjs/swagger": "^5.1.2",
"@nestjs/throttler": "2.0.0",
"@prisma/client": "3.3.0",
"bcrypt": "^5.0.1",
"class-transformer": "^0.4.0",
"class-validator": "^0.14.0",
"dotenv": "^10.0.0",
"dotenv-cli": "4.1.1",
"helmet": "^4.6.0",
"nanoid": "^3.1.31",
"nodemailer": "^6.7.0",
"passport": "^0.6.0",
"passport-jwt": "^4.0.0",
"reflect-metadata": "^0.1.12",
"request-ip": "^2.1.3",
"rimraf": "^3.0.2",
"rxjs": "^7.4.0",
"swagger-ui-express": "^4.1.4"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@nestjs/cli": "^8.1.3",
"@nestjs/schematics": "^8.0.4",
"@nestjs/testing": "^8.1.1",
"@types/bcrypt": "^3.0.0",
"@types/express": "^4.17.13",
"@types/jest": "^27.0.2",
"@types/nanoid": "^2.1.0",
"@types/node": "^16.11.1",
"@types/nodemailer": "^6.4.0",
"@types/passport-jwt": "^3.0.3",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"cross-env": "^7.0.2",
"eslint": "^7.32.0",
"eslint-config-airbnb-typescript": "^12.0.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.4.1",
"husky": "^4.2.5",
"jest": "^27.3.0",
"jest-extended": "1.1.0",
"jest-mock-extended": "2.0.4",
"lint-staged": "^10.2.11",
"prettier": "^2.4.1",
"prisma": "3.3.0",
"source-map-support": "^0.5.20",
"supertest": "^6.1.6",
"ts-jest": "^27.0.7",
"ts-loader": "^9.2.6",
"ts-node": "^10.3.0",
"tsconfig-paths": "^3.11.0",
"typescript": "^4.4.4"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"roots": [
"src",
"test"
],
"setupFilesAfterEnv": [
"jest-extended",
"./jest.setup.ts"
],
"testRegex": ".spec.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"coverageDirectory": "../coverage",
"testEnvironment": "node"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}