-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
187 lines (187 loc) · 5.87 KB
/
package.json
File metadata and controls
187 lines (187 loc) · 5.87 KB
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
{
"name": "hmpps-manage-users",
"description": "Nodejs application to support managing staff user account in hmpps auth",
"version": "0.1.0",
"private": true,
"engines": {
"node": "^24",
"npm": "^11"
},
"dependencies": {
"@ministryofjustice/frontend": "^8.0.1",
"@ministryofjustice/hmpps-audit-client": "^1.1.1",
"accessible-autocomplete": "^3.0.1",
"agentkeepalive": "^4.6.0",
"applicationinsights": "^2.9.8",
"axios": "^1.13.6",
"babel-jest": "^30.3.0",
"body-parser": "^2.2.2",
"bunyan": "^1.8.15",
"bunyan-format": "^0.2.1",
"concurrently": "^9.2.1",
"connect-flash": "^0.1.1",
"connect-redis": "^9.0.0",
"csrf-sync": "^4.2.1",
"csv-parse": "^6.1.0",
"dotenv": "^17.3.1",
"express": "^4.22.1",
"express-async-errors": "^3.1.1",
"express-session": "^1.19.0",
"govuk-frontend": "^5.14.0",
"helmet": "^8.1.0",
"hsts": "^2.2.0",
"json2csv": "^5.0.7",
"jsonwebtoken": "^9.0.3",
"jwt-decode": "^4.0.0",
"moment": "^2.30.1",
"nocache": "^4.0.0",
"nock": "^14.0.11",
"nunjucks": "^3.2.4",
"passport": "^0.7.0",
"passport-oauth2": "^1.8.0",
"redis": "^5.11.0",
"static-path": "^0.0.4",
"superagent": "^10.3.0",
"uuid": "^11.1.0",
"validatorjs": "^3.22.1"
},
"devDependencies": {
"@babel/core": "^7.29.0",
"@ministryofjustice/hmpps-npm-script-allowlist": "0.0.3",
"@types/bunyan": "^1.8.11",
"@types/bunyan-format": "^0.2.9",
"@types/connect-flash": "0.0.40",
"@types/cookie-session": "^2.0.49",
"@types/csurf": "^1.11.5",
"@types/express-session": "^1.18.2",
"@types/jest": "^30.0.0",
"@types/json2csv": "^5.0.7",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^25.5.0",
"@types/passport": "^1.0.17",
"@types/passport-oauth2": "^1.8.0",
"@types/superagent": "^8.1.9",
"@types/uuid": "^10.0.0",
"@types/validatorjs": "^3.15.5",
"@typescript-eslint/eslint-plugin": "^8.57.0",
"@typescript-eslint/parser": "^8.57.0",
"audit-ci": "^7.1.0",
"cypress": "15.12.0",
"cypress-multi-reporters": "^2.0.5",
"eslint": "^8.57.1",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^10.1.8",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-cypress": "^3.6.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-no-only-tests": "^3.3.0",
"eslint-plugin-prettier": "^5.5.5",
"husky": "^9.1.7",
"jest": "^30.3.0",
"jest-html-reporter": "^4.3.0",
"jest-junit": "^16.0.0",
"lint-staged": "^16.4.0",
"mocha-junit-reporter": "^2.2.1",
"nodemon": "^3.1.14",
"prettier": "^3.8.1",
"sass": "^1.98.0",
"set-cookie-parser": "^3.0.1",
"supertest": "^7.2.2",
"ts-jest": "^29.4.6",
"typescript": "^5.9.3"
},
"overrides": {
"fast-xml-parser": "^5.3.8",
"@isaacs/brace-expansion": "^5.0.1",
"serialize-javascript": "^7.0.3"
},
"scripts": {
"clean": " rm -Rf build dist .nyc_output coverage test-results",
"copy-views": "mkdir -p dist && cp -R views dist/",
"copy-assets": "cp -R static/. build/",
"watch-views": "nodemon --watch views -e html,njk -x npm run copy-views",
"watch-assets": "nodemon --watch static -x npm run copy-assets",
"watch-ts": "tsc -w",
"watch-node": "nodemon --watch dist/ dist/server.js | bunyan -o short",
"start:dev": "npm run build && concurrently npm:watch-*",
"start-feature": "npm run copy-assets && npm run compile-sass && export $(cat cypress.env) && node dist/server.js",
"test-watch-node-feature": "export $(cat cypress.env) && nodemon --watch dist/ dist/server.js | bunyan -o short",
"start-feature:dev": "npm run build && concurrently -n \"Views,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" npm:watch-views npm:watch-ts npm:test-watch-node-feature",
"build": "npm run copy-assets && tsc && npm run compile-sass && npm run copy-views",
"test": "jest",
"test-watch": "jest --watch",
"test:ci": "jest --runInBand",
"record-build-info": "node scripts/record-build-info",
"lint": "eslint backend integration-tests",
"typecheck": "tsc",
"security_audit": "npx audit-ci --config audit-ci.json",
"int-test": "cypress run --config video=false",
"int-test-no-artefacts": "cypress run --config video=false,screenshotOnRunFailure=false",
"int-test-ui": "cypress open",
"compile-sass": "sass --load-path=. ./sass:./build/stylesheets --style compressed",
"watch-compile-sass": "npm run compile-sass && sass --load-path=. ./sass:./build/stylesheets --watch --style compressed",
"prepare": "husky install",
"setup": "npm ci && hmpps-npm-script-run-allowlist"
},
"jest": {
"preset": "ts-jest",
"collectCoverageFrom": [
"backend/**/*.{js,mjs}"
],
"globalSetup": "<rootDir>/config/jest/globalSetup.js",
"setupFilesAfterEnv": [
"<rootDir>/config/jest/setupTests.js"
],
"testMatch": [
"<rootDir>/(backend|job)/**/?(*.)(cy|test).{ts,js,jsx,mjs}"
],
"testEnvironment": "node",
"testPathIgnorePatterns": [
"<rootDir>/integration-tests/"
],
"reporters": [
"default",
[
"jest-junit",
{
"outputDirectory": "test_results/jest/"
}
],
[
"./node_modules/jest-html-reporter",
{
"outputPath": "test_results/unit-test-reports.html"
}
]
],
"moduleFileExtensions": [
"web.js",
"js",
"json",
"node",
"mjs",
"ts"
]
},
"lint-staged": {
"*.{ts,js,css}": [
"prettier --write",
"eslint --fix"
],
"*.{json}": [
"prettier --write"
]
},
"nodemonConfig": {
"ignore": [
".circleci/*",
"migrations/*",
"seeds/*",
"node_modules/*",
"integration-tests/*"
],
"delay": 2500,
"ext": "js,njk"
}
}