generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
202 lines (202 loc) · 6.4 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"name": "hmpps-activities-management",
"version": "0.0.1",
"description": "Hmpps Activities Management",
"repository": "git@github.com:ministryofjustice/hmpps-activities-management.git",
"license": "MIT",
"scripts": {
"prepare": "husky",
"watch-ts": "tsc -w",
"build": "node esbuild/esbuild.config.js --build",
"start": "node $NODE_OPTIONS -r dotenv/config dist/server.js | bunyan -o short",
"start:dev": "concurrently -k -p \"[{name}]\" -n \"ESBuild,Node\" -c \"yellow.bold,cyan.bold\" \"node esbuild/esbuild.config.js --build --watch\" \"node esbuild/esbuild.config.js --dev-server\"",
"start-feature": "export $(cat feature.env) && node $NODE_DEBUG_OPTION dist/server.js | bunyan -o short",
"start-feature:dev": "export $(cat feature.env) && concurrently -k -p \"[{name}]\" -n \"ESBuild,Node\" -c \"yellow.bold,cyan.bold\" \"node esbuild/esbuild.config.js --build --watch\" \"node esbuild/esbuild.config.js --dev-test-server\"",
"record-build-info": "node ./bin/record-build-info",
"lint": "eslint . --cache --max-warnings 0",
"lint:fix": "eslint . --cache --max-warnings 0 --fix",
"typecheck": "tsc && tsc -p integration_tests",
"test": "NODE_ENV=unit-test TZ=utc NODE_OPTIONS=--experimental-vm-modules jest --runInBand --detectOpenHandles --collectCoverage=true --testPathPattern='(server|frontend)/.*'",
"security_audit": "better-npm-audit audit",
"int-test": "cypress run --config video=false",
"int-test-ui": "cypress open --config watchForFileChanges=false",
"clean": "rm -rf dist node_modules",
"rebuild": "npm run clean && npm i && npm run build"
},
"engines": {
"node": "^20",
"npm": "^10"
},
"jest": {
"preset": "ts-jest",
"collectCoverageFrom": [
"server/**/*.{ts,js,jsx,mjs}"
],
"testMatch": [
"<rootDir>/(server|frontend|job)/**/?(*.)(cy|test).{ts,js,jsx,mjs}"
],
"setupFilesAfterEnv": [
"<rootDir>jest.setup.ts"
],
"testEnvironment": "node",
"transform": {
"^.+\\.[tj]sx?$": [
"ts-jest",
{
"isolatedModules": true
}
]
},
"reporters": [
"default",
[
"jest-junit",
{
"outputDirectory": "test_results/jest/"
}
],
[
"./node_modules/jest-html-reporter",
{
"outputPath": "test_results/unit-test-reports.html"
}
]
],
"moduleFileExtensions": [
"web.js",
"mjs",
"js",
"json",
"node",
"ts"
]
},
"lint-staged": {
"*.{ts,js,css}": [
"prettier --write",
"eslint --fix"
],
"*.json": [
"prettier --write"
]
},
"dependencies": {
"@hmcts/uk-bank-holidays": "^1.0.2",
"@microsoft/applicationinsights-web": "^3.3.4",
"@ministryofjustice/frontend": "^2.2.5",
"@ministryofjustice/hmpps-digital-prison-reporting-frontend": "^3.33.0",
"@types/express-serve-static-core": "^4.19.6",
"@types/lodash": "^4.17.13",
"accessible-autocomplete": "^3.0.1",
"agentkeepalive": "^4.5.0",
"applicationinsights": "^2.9.6",
"body-parser": "^1.20.3",
"bunyan": "^1.8.15",
"bunyan-format": "^0.2.1",
"chart.js": "^4.4.7",
"chartjs-plugin-datalabels": "^2.2.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"compression": "^1.7.5",
"connect-flash": "^0.1.1",
"connect-redis": "^8.0.1",
"csurf": "^1.11.0",
"csv-parse": "^5.6.0",
"date-fns": "^4.1.0",
"dayjs": "^1.11.13",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"express-prom-bundle": "^7.0.2",
"express-session": "^1.18.1",
"govuk-frontend": "^5.7.1",
"helmet": "^8.0.0",
"http-errors": "^2.0.0",
"isbinaryfile": "^5.0.4",
"jquery": "^3.7.1",
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"multer": "^1.4.5-lts.1",
"nocache": "^4.0.0",
"nunjucks": "^3.2.4",
"openapi-typescript": "^7.4.4",
"passport": "^0.7.0",
"passport-oauth2": "^1.8.0",
"redis": "^4.7.0",
"reflect-metadata": "^0.2.2",
"superagent": "^10.1.1",
"url-value-parser": "^2.2.0",
"uuid": "^11.0.3"
},
"devDependencies": {
"@jgoz/esbuild-plugin-typecheck": "^4.0.2",
"@rollup/plugin-commonjs": "^28.0.2",
"@rollup/plugin-node-resolve": "^16.0.0",
"@types/bunyan": "^1.8.11",
"@types/bunyan-format": "^0.2.9",
"@types/compression": "^1.7.5",
"@types/connect-flash": "^0.0.40",
"@types/csurf": "^1.11.5",
"@types/express-session": "^1.18.1",
"@types/http-errors": "^2.0.4",
"@types/jest": "^29.5.14",
"@types/jest-when": "^3.5.5",
"@types/jsonwebtoken": "^9.0.7",
"@types/multer": "^1.4.12",
"@types/node": "^20.17.10",
"@types/nunjucks": "^3.2.6",
"@types/passport": "^1.0.17",
"@types/passport-oauth2": "^1.4.17",
"@types/sinon": "^17.0.3",
"@types/superagent": "^8.1.9",
"@types/supertest": "^6.0.2",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.18.1",
"@typescript-eslint/parser": "^8.18.1",
"axe-core": "^4.10.2",
"better-npm-audit": "^3.11.0",
"cheerio": "^1.0.0",
"chokidar": "^3.6.0",
"concurrently": "^9.1.0",
"cypress": "^13.16.1",
"cypress-axe": "^1.5.0",
"cypress-file-upload": "^5.0.8",
"cypress-multi-reporters": "^2.0.4",
"esbuild": "^0.24.1",
"esbuild-plugin-clean": "^1.0.1",
"esbuild-plugin-copy": "^2.1.1",
"esbuild-plugin-manifest": "^1.0.5",
"esbuild-sass-plugin": "^3.3.1",
"eslint": "^8.57.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-cypress": "^3.6.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-unused-imports": "^4.1.4",
"glob": "^11.0.0",
"husky": "^9.1.7",
"jest": "^29.7.0",
"jest-date": "^1.1.6",
"jest-html-reporter": "^3.10.2",
"jest-junit": "^16.0.0",
"jest-when": "^3.7.0",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.2.11",
"mocha-junit-reporter": "^2.2.1",
"nock": "^13.5.6",
"prettier": "^3.4.2",
"prettier-plugin-jinja-template": "^2.0.0",
"sinon": "^19.0.2",
"supertest": "^7.0.0",
"ts-jest": "^29.2.5",
"ts-node": "^10.9.2",
"typescript": "^5.7.2"
},
"overrides": {
"cookie": "~1.0.2",
"path-to-regexp": "~0.1.12",
"cross-spawn": "~7.0.6"
}
}