-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
132 lines (132 loc) · 5.09 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
{
"name": "api",
"version": "1.2.0",
"description": "projetoumportodostodosporum.org's API",
"author": "https://github.com/RenanGalvao",
"private": true,
"license": "UNLICENSED",
"prisma": {
"seed": "node prisma/seed.js"
},
"scripts": {
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"prebuild": "rimraf dist",
"build": "nest build",
"build:docker": "docker build --target prod-image -t renangalvao/project:api-$npm_package_version -t renangalvao/project:api-latest .",
"postbuild:docker": "docker push --all-tags renangalvao/project",
"build:docker:preview": "docker build --no-cache --target preview-image -t project/api:preview .",
"prisma:studio": "dotenv -e .env.dev -- npx prisma studio",
"prisma:dev:migrate": "dotenv -e .env.dev -- npx prisma migrate dev --name init",
"prisma:dev:reset": "dotenv -e .env.dev -- npx prisma migrate reset --force",
"prisma:dev:deploy": "dotenv -e .env.dev -- npx prisma migrate deploy",
"dev": "npm run prisma:dev:reset && dotenv -e .env.dev -- nest start --watch",
"docker:test:down": "docker compose -f docker-compose.ci.yml down -v --remove-orphans",
"docker:test:up": "docker compose -f docker-compose.ci.yml up -d",
"docker:test:restart": "npm run docker:test:down && npm run docker:test:up && sleep 3",
"test:unit": "jest -i --watch --forceExit --config jest-unit.json",
"test:unit:cov": "jest -i --coverage --forceExit --config jest-unit.json",
"pretest:e2e": "npm run pretest:int",
"test:e2e": "dotenv -e .env.test -- jest -i --watch --forceExit --config jest-e2e.json",
"posttest:e2e": "npm run posttest:int",
"pretest:e2e:cov": "npm run pretest:int",
"test:e2e:cov": "dotenv -e .env.test -- jest -i --coverage --forceExit --config jest-e2e.json",
"pretest:int": "npm run docker:test:restart && dotenv -e .env.test -- npx prisma migrate reset --force --skip-seed",
"test:int": "dotenv -e .env.test -- jest -i --watch --forceExit --config jest-int.json",
"posttest:int": "npm run docker:test:down",
"pretest:int:cov": "npm run pretest:int",
"test:int:cov": "dotenv -e .env.test -- jest -i --coverage --forceExit --config jest-int.json",
"docker:ci:stop": "docker compose -f docker-compose.ci.yml down -v --remove-orphans",
"docker:ci:start": "docker compose -f docker-compose.ci.yml up -d",
"docker:ci:restart": "npm run docker:ci:stop && npm run docker:ci:start && sleep 5",
"pretest:e2e:ci": "npm run docker:ci:restart && npx prisma migrate reset --force --skip-seed",
"test:e2e:ci": "jest -i --ci --forceExit --config jest-e2e.json",
"pretest:int:ci": "npm run pretest:e2e:ci",
"test:int:ci": "jest -i --ci --forceExit --config jest-int.json",
"pretest:unit:ci": "npm run pretest:e2e:ci",
"test:unit:ci": "jest -i --ci --forceExit --config jest-unit.json"
},
"overrides": {
"@nestjs-modules/mailer": {
"mjml": "^5.0.0-alpha.4"
}
},
"dependencies": {
"@nestjs-modules/mailer": "^1.6.1",
"@nestjs/bull": "^10.1.1",
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.2.0",
"@nestjs/core": "^10.3.8",
"@nestjs/jwt": "^10.0.2",
"@nestjs/passport": "^10.0.0",
"@nestjs/platform-express": "^10.3.8",
"@nestjs/schedule": "^4.0.0",
"@nestjs/swagger": "^7.3.1",
"@nestjs/throttler": "^5.1.0",
"@prisma/client": "^4.4.0",
"argon2": "^0.30.3",
"bcrypt": "^5.1.0",
"bull": "^4.12.2",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"handlebars": "^4.7.7",
"helmet": "^6.0.0",
"multer": "^1.4.5-lts.1",
"nodemailer": "^6.8.0",
"passport": "^0.6.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"rxjs": "^7.2.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@golevelup/nestjs-testing": "^0.1.2",
"@nestjs/cli": "^10.0.0",
"@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.3.8",
"@types/bcrypt": "^5.0.0",
"@types/express": "^4.17.13",
"@types/jest": "28.1.4",
"@types/multer": "^1.4.7",
"@types/node": "^16.0.0",
"@types/passport-jwt": "^3.0.7",
"@types/passport-local": "^1.0.34",
"@types/supertest": "^2.0.11",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"dotenv-cli": "^6.0.0",
"esbuild": "^0.15.16",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "28.1.2",
"prettier": "^2.3.2",
"prisma": "^4.11.0",
"source-map-support": "^0.5.20",
"supertest": "^6.1.3",
"ts-jest": "28.0.5",
"ts-loader": "^9.2.3",
"ts-node": "^10.0.0",
"tsconfig-paths": "4.0.0",
"typescript": "^4.3.5"
},
"jest": {
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"rootDir": "src",
"testRegex": ".*\\.spec\\.ts$",
"transform": {
"^.+\\.(t|j)s$": "ts-jest"
},
"collectCoverageFrom": [
"**/*.(t|j)s"
],
"coverageDirectory": "../coverage",
"testEnvironment": "node"
}
}