/
package.json
155 lines (155 loc) 路 7.26 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
{
"name": "werewolves-assistant-api-next",
"version": "1.31.2",
"description": "Werewolves Assistant API provides over HTTP requests a way of manage Werewolves games to help the game master.",
"readme": "README.md",
"type": "commonjs",
"keywords": [
"nest",
"werewolves",
"assistant",
"mongoose",
"typescript"
],
"homepage": "https://github.com/antoinezanardi/werewolves-assistant-api-next#readme",
"bugs": {
"url": "https://github.com/antoinezanardi/werewolves-assistant-api-next/issues",
"email": "antoine.zanardi@epitech.eu"
},
"license": "MIT",
"author": {
"name": "Antoine ZANARDI",
"email": "antoine.zanardi@epitech.eu",
"url": "https://antoinezanardi.fr"
},
"main": "src/main.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/antoinezanardi/werewolves-assistant-api-next.git"
},
"scripts": {
"prepare": "is-ci || husky",
"prebuild": "rimraf dist",
"build": "cross-env NODE_ENV=production nest build",
"docker:dev:start": "docker rmi antoinezanardi/werewolves-assistant-api-dev; docker compose -f docker/werewolves-assistant-api-dev/docker-compose.yml up -d",
"docker:dev:stop": "docker compose -f docker/werewolves-assistant-api-dev/docker-compose.yml down",
"docker:dev:reset": "npm run docker:dev:stop && npm run docker:dev:start",
"docker:production:start": "docker rmi antoinezanardi/werewolves-assistant-api-production; docker compose -f docker/werewolves-assistant-api-production/docker-compose.yml up -d",
"docker:production:stop": "docker compose -f docker/werewolves-assistant-api-production/docker-compose.yml down",
"docker:production:reset": "npm run docker:production:stop && npm run docker:production:start",
"docker:test:start": "docker compose -f docker/werewolves-assistant-api-test/docker-compose.yml up -d",
"docker:test:stop": "docker compose -f docker/werewolves-assistant-api-test/docker-compose.yml down",
"docker:test:reset": "npm run docker:test:stop && npm run docker:test:start",
"start": "npm run start:prod",
"start:dev": "rimraf dist && nest start --watch",
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main.js",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"lint:staged:fix": "lint-staged -c config/lintstaged/.lintstagedrc.eslint.json",
"lint:inspect-config": "npx @eslint/config-inspector",
"test": "cross-env NODE_ENV=test jest --config config/jest/jest-global.ts",
"test:staged": "cross-env NODE_ENV=test jest --config config/jest/jest-global.ts -o",
"test:watch": "cross-env NODE_ENV=test jest --watch --config config/jest/jest-global.ts",
"test:cov": "cross-env NODE_ENV=test jest --coverage --config config/jest/jest-global.ts",
"test:stryker": "cross-env NODE_ENV=test rimraf tests/stryker/coverage && stryker run config/stryker/stryker.conf.js",
"test:stryker:force": "cross-env NODE_ENV=test rimraf tests/stryker/incremental.json tests/stryker/coverage && stryker run config/stryker/stryker.conf.js --force",
"test:stryker:ci": "cross-env NODE_ENV=test rimraf tests/stryker/coverage && stryker run config/stryker/stryker-ci.conf.js",
"test:unit": "cross-env NODE_ENV=test jest --config config/jest/jest-unit.ts",
"test:unit:watch": "cross-env NODE_ENV=test jest --watch --config config/jest/jest-unit.ts",
"test:unit:cov": "cross-env NODE_ENV=test rimraf tests/unit/coverage && jest --coverage --config config/jest/jest-unit.ts",
"test:unit:debug": "cross-env NODE_ENV=test node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand --config tests/unit/jest-unit.ts",
"test:e2e": "cross-env NODE_ENV=test jest --config config/jest/jest-e2e.ts",
"test:e2e:watch": "cross-env NODE_ENV=test jest --watch --config config/jest/jest-e2e.ts",
"test:e2e:cov": "cross-env NODE_ENV=test rimraf tests/e2e/coverage && jest --coverage --config config/jest/jest-e2e.ts",
"test:e2e:debug": "cross-env NODE_ENV=test node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand --config config/jest/jest-e2e.ts",
"test:cucumber": "cross-env NODE_ENV=test cucumber-js --config config/cucumber/cucumber.json; EXIT_CODE_CUCUMBER=$?; npm run test:cucumber:html-report; exit $EXIT_CODE_CUCUMBER",
"test:cucumber:publish": "cross-env NODE_ENV=test cucumber-js --config config/cucumber/cucumber.json --publish",
"test:cucumber:html-report": "tsx tests/acceptance/plugins/html-reporter/cucumber-html-reporter.ts",
"script:create-branch": "scripts/create-git-branch.sh",
"script:create-pull-request": "scripts/create-pull-request.sh",
"gource": "gource --load-config config/gource/gource.config",
"gcloud:deploy": "gcloud app deploy"
},
"dependencies": {
"@fastify/static": "^7.0.3",
"@nestjs/common": "^10.3.7",
"@nestjs/config": "^3.2.2",
"@nestjs/core": "^10.3.7",
"@nestjs/mongoose": "^10.0.6",
"@nestjs/platform-express": "^10.3.7",
"@nestjs/platform-fastify": "^10.3.7",
"@nestjs/swagger": "^7.3.1",
"@nestjs/terminus": "^10.2.3",
"@types/lodash": "^4.17.0",
"@types/validator": "^13.11.9",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"dot-object": "^2.1.4",
"fastify": "^4.26.2",
"is-ci": "^3.0.1",
"isobject": "^4.0.0",
"lodash": "^4.17.21",
"mongoose": "^8.3.2",
"qs": "^6.12.1",
"radash": "^12.1.0",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1"
},
"devDependencies": {
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"@cucumber/cucumber": "^10.4.0",
"@eslint/config-inspector": "^0.4.7",
"@faker-js/faker": "^8.4.1",
"@nestjs/cli": "^10.3.2",
"@nestjs/schematics": "^10.1.1",
"@nestjs/testing": "^10.3.7",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@stryker-mutator/core": "^8.2.6",
"@stryker-mutator/jest-runner": "^8.2.6",
"@stryker-mutator/typescript-checker": "^8.2.6",
"@stylistic/eslint-plugin": "^1.7.2",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.12",
"@types/jest-when": "^3.5.5",
"@types/node": "^20.12.7",
"@types/qs": "^6.9.15",
"@types/supertest": "^6.0.2",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"cross-env": "^7.0.3",
"cucumber-html-reporter": "^7.1.1",
"eslint": "^9.1.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.2.0",
"expect": "^29.7.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
"jest-extended": "^4.0.2",
"jest-when": "^3.6.0",
"light-my-request": "5.13.0",
"lint-staged": "^15.2.2",
"rimraf": "^5.0.4",
"semantic-release": "^23.0.8",
"semantic-release-export-data": "^1.0.1",
"source-map-support": "^0.5.20",
"ts-jest": "^29.1.2",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.2",
"tsconfig-paths": "^4.2.0",
"tsx": "^4.7.2",
"type-fest": "^4.15.0",
"typescript": "^5.4.5",
"validate-branch-name": "^1.3.0"
},
"engines": {
"node": ">=21.0.0"
},
"os": [
"darwin",
"linux"
],
"packageManager": "pnpm@9.0.6+sha512.f6d863130973207cb7a336d6b439a242a26ac8068077df530d6a86069419853dc1ffe64029ec594a9c505a3a410d19643c870aba6776330f5cfddcf10a9c1617"
}