forked from tduyng/nestjs-graphql-prisma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
147 lines (147 loc) · 5.32 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
{
"name": "graphql-simple-boilerplate",
"version": "0.0.1",
"description": "Boilerplate starter project with NestJS - GraphQL - Prisma",
"author": "Tien Duy",
"private": false,
"license": "MIT",
"keywords": [
"NestJS",
"GraphQL",
"Prisma",
"prisma 2",
"Boilerplate",
"Starter",
"Postgres",
"TypeScript",
"nestjs graphql boilerplate",
"nestjs graphql prisma",
"nestjs template"
],
"scripts": {
"prebuild": "rimraf dist",
"build": "nest build",
"start": "nest start",
"start:dev": "cross-env NODE_ENV=development nest start --watch",
"start:debug": "cross-env NODE_ENV=development nest start --debug --watch",
"start:prod": "cross-env NODE_ENV=production node dist/main",
"migrate:dev": "prisma migrate dev --name autoMigrate --preview-feature",
"migrate:dev:create": "prisma migrate dev --create-only --preview-feature",
"migrate:reset": "prisma migrate reset --preview-feature",
"migrate:resolve": "npx prisma migrate resolve --preview-feature",
"start:db": "yarn prisma:generate && yarn migrate:dev && yarn seed",
"preseed": "npx prisma generate",
"seed": "ts-node prisma/seed.ts",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix && prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"test": "cross-env NODE_ENV=test jest",
"test:watch": "cross-env NODE_ENV=test jest --watch",
"test:cov": "cross-env NODE_ENV=test jest --coverage",
"coveralls": "yarn test:cov && cat ./coverage/lcov.info | coveralls",
"test:debug": "cross-env NODE_ENV=test node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"pretest:e2e": "nest build -p tsconfig.test.json && cp ./test/jest-e2e.json ./dist-test/test/",
"test:e2e": "jest --config ./dist-test/test/jest-e2e.json",
"docker:build": "docker-compose -f docker-compose.yml build --no-cache",
"docker:prisma:generate": "docker-compose -f docker-compose.yml run --rm nest-api yarn prisma:generate",
"docker:migrate": "docker-compose -f docker-compose.yml run --rm nest-api yarn migrate:dev",
"docker:seed": "docker-compose -f docker-compose.yml run --rm nest-api yarn seed",
"docker:prisma:studio": "docker-compose -f docker-compose.yml run nest-api -d yarn prisma:studio",
"docker:start:dev": "docker-compose up",
"docker:test:seed": "docker-compose -f docker-compose.test.yml run --rm nest-api yarn seed",
"docker:test:migrate": "docker-compose -f docker-compose.test.yml run --rm nest-api yarn migrate:dev",
"docker:test:build": "docker-compose -f docker-compose.test.yml build --no-cache",
"docker:test:run": "docker-compose -f docker-compose.test.yml run --rm nest-api yarn test"
},
"dependencies": {
"@nestjs-modules/mailer": "1.6.0",
"@nestjs/common": "7.6.15",
"@nestjs/config": "0.6.3",
"@nestjs/core": "7.6.15",
"@nestjs/graphql": "7.9.11",
"@nestjs/jwt": "7.2.0",
"@nestjs/passport": "7.1.5",
"@nestjs/platform-express": "7.6.15",
"@nestjs/swagger": "4.8.0",
"@paljs/plugins": "3.0.11",
"@prisma/client": "2.21.2",
"@types/express-rate-limit": "5.1.1",
"apollo-server-express": "2.21.2",
"bcrypt": "5.0.1",
"class-transformer": "0.4.0",
"class-validator": "0.13.1",
"connect-redis": "5.2.0",
"cookie-parser": "1.4.5",
"cross-env": "7.0.3",
"express-rate-limit": "5.2.6",
"express-session": "1.17.1",
"graphql": "15.5.0",
"graphql-fields": "2.0.3",
"graphql-tool": "1.0.0",
"graphql-tools": "7.0.4",
"handlebars": "4.7.7",
"helmet": "4.6.0",
"ioredis": "4.27.1",
"nodemailer": "6.6.0",
"nodemailer-sendgrid-transport": "^0.2.0",
"passport": "0.4.1",
"passport-jwt": "4.0.0",
"passport-local": "1.0.0",
"pg": "8.6.0",
"reflect-metadata": "0.1.13",
"rimraf": "3.0.2",
"rxjs": "6.6.7",
"simplytyped": "3.3.0",
"slugify": "1.5.1",
"swagger-ui-express": "4.1.6"
},
"devDependencies": {
"@commitlint/cli": "12.1.1",
"@commitlint/config-conventional": "12.1.1",
"@nestjs/cli": "7.6.0",
"@nestjs/schematics": "7.3.1",
"@nestjs/testing": "7.6.15",
"@types/bcrypt": "3.0.1",
"@types/cookie-parser": "1.4.2",
"@types/express": "4.17.11",
"@types/ioredis": "4.26.1",
"@types/jest": "26.0.23",
"@types/node": "15.0.1",
"@types/passport-jwt": "3.0.5",
"@types/supertest": "2.0.11",
"@typescript-eslint/eslint-plugin": "4.22.0",
"@typescript-eslint/parser": "4.22.0",
"apollo-error-converter": "1.1.1",
"compression": "1.7.4",
"coveralls": "3.1.0",
"cz-conventional-changelog": "3.3.0",
"dotenv": "8.2.0",
"eslint": "7.25.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-prettier": "3.4.0",
"husky": "6.0.0",
"jest": "26.6.3",
"nestjs-i18n": "8.1.1",
"prettier": "2.2.1",
"prisma": "2.19.0",
"prisma-dbml-generator": "0.5.0",
"prisma-nestjs-graphql": "9.0.0",
"supertest": "6.1.3",
"ts-jest": "26.5.5",
"ts-loader": "9.1.1",
"ts-node": "9.1.1",
"tsconfig-paths": "3.9.0",
"typescript": "4.2.4"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"disabled-lint-staged": {
"{src,apps,libs,test}/**/*.ts": [
"yarn lint"
],
"./**/*.{ts,js,json,*rc}": [
"yarn prettier"
]
}
}