forked from hmcts/pcs-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
202 lines (202 loc) · 8.3 KB
/
package.json
File metadata and controls
202 lines (202 loc) · 8.3 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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
{
"name": "pcs-frontend",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"start:dev:ssl": "./bin/generate-ssl-options.sh && NODE_ENV=development USE_SSL=true OIDC_REDIRECT_URI=https://localhost:3209/oauth2/callback yarn start:dev",
"start:dev": "node --env-file-if-exists=.env -r ts-node/register -r tsconfig-paths/register src/main/server.ts",
"start": "NODE_ENV=production dist/main/server.js",
"createIdamUser": "./bin/dev/createIdamUser.sh",
"start:watch": "nodemon --config nodemon.json",
"docker:dev": "docker compose up",
"docker:dev:ssl": "COMMAND='yarn start:dev:ssl' docker compose up --build",
"lint": "stylelint **/*.scss -v -q && eslint . --ext .js,.ts && prettier --check .",
"lint:fix": "prettier --write . .github && eslint --fix",
"build": "yarn webpack --config webpack.config.js",
"build:prod": "NODE_ENV=production yarn webpack --mode production --config webpack.config.js",
"test": "npx if-env CI=true && exit 0 || yarn test:unit",
"test:unit": "jest",
"test:coverage": "jest --coverage",
"test:routes": "jest -c jest.routes.config.ts",
"test:a11y": "echo 'Accessibility tests implemented later in the pipeline'",
"test:accessibility": "yarn playwright install && yarn playwright test --project chromium --grep @accessibility; EXIT_CODE=$?; allure generate --clean; ts-node src/test/ui/config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:smoke": "NODE_TLS_REJECT_UNAUTHORIZED=0 jest -c jest.smoke.config.ts",
"test:functional": "yarn playwright install && yarn playwright test --project chromium --grep @PR; EXIT_CODE=$?; allure generate --clean; ts-node src/test/ui/config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:fullfunctional": "yarn playwright install && yarn playwright test --project chromium; EXIT_CODE=$?; allure generate --clean; ts-node src/test/ui/config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:changed": "yarn playwright install && ts-node ./src/test/functional/helpers/runChangedTestHelper.ts; EXIT_CODE=$?; allure generate --clean; ts-node src/test/ui/config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:E2eChrome": "yarn playwright install && yarn playwright test --project chromium --grep @nightly; EXIT_CODE=$?; allure generate --clean; ts-node src/test/ui/config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:E2eFirefox": "yarn playwright install && yarn playwright test --project firefox --grep @nightly; EXIT_CODE=$?; allure generate --clean; ts-node src/test/ui/config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:E2eSafari": "yarn playwright install && yarn playwright test --project webkit --grep @nightly; EXIT_CODE=$?; allure generate --clean; ts-node src/test/ui/config/clean-attachments.config.ts; exit $EXIT_CODE",
"test:pact": "jest -c jest.pact.config.ts --runInBand",
"pact:publish": "ts-node src/test/contract/publish/*.ts",
"test:pact:run-and-publish": "yarn test:pact && yarn pact:publish",
"test:can-i-deploy:consumer": "pact-broker can-i-deploy --pacticipant 'pcs_frontend' --version $(git rev-parse --short HEAD) --broker-base-url https://pact-broker.platform.hmcts.net",
"test:openAllureReport": "yarn allure open allure-report",
"fortifyScan": "./src/test/java/gradlew -p src/test/java fortifyScan",
"prepare": "husky"
},
"dependencies": {
"@hmcts/info-provider": "^1.1.0",
"@hmcts/nodejs-healthcheck": "^1.8.0",
"@hmcts/nodejs-logging": "^4.0.4",
"@hmcts/playwright-common": "1.0.39",
"@hmcts/properties-volume": "^1.2.0",
"@launchdarkly/node-server-sdk": "^9.10.0",
"applicationinsights": "3.12.1",
"axios": "^1.13.5",
"body-parser": "^2.0.0",
"chai": "^6.2.0",
"config": "^3.3.9",
"connect-redis": "^7.1.1",
"cookie-parser": "^1.4.7",
"csrf-csrf": "^3.1.0",
"express": "^5.2.1",
"express-nunjucks": "^3.1.1",
"express-session": "^1.18.1",
"git-rev-sync": "^3.0.2",
"glob": "^13.0.1",
"govuk-frontend": "5.13.0",
"graphql": "^16.10.0",
"helmet": "^8.0.0",
"http-status-codes": "^2.3.0",
"http-terminator": "^3.2.0",
"i18next": "^25.3.2",
"i18next-fs-backend": "^2.6.0",
"i18next-http-middleware": "^3.7.4",
"ioredis": "^5.4.1",
"jquery": "^3.7.0",
"lodash": "^4.17.23",
"luxon": "^3.6.1",
"nunjucks": "^3.2.4",
"oauth4webapi": "^3.3.1",
"openid-client": "^6.3.4",
"require-directory": "^2.1.1",
"serve-favicon": "^2.5.0",
"totp-generator": "^1.0.0",
"validator": "^13.15.15",
"zod": "^3.25.32",
"zod-i18n-map": "^2.27.0"
},
"devDependencies": {
"@axe-core/playwright": "^4.10.1",
"@babel/core": "^7.22.11",
"@babel/eslint-parser": "^7.22.11",
"@babel/preset-env": "^7.22.14",
"@eslint/compat": "^2.0.0",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.29.0",
"@eslint/plugin-kit": "^0.5.0",
"@pact-foundation/pact": "^15.0.0",
"@pact-foundation/pact-cli": "^16.0.7",
"@playwright/test": "^1.49.0",
"@types/body-parser": "^1.19.2",
"@types/chai": "^5.0.0",
"@types/chai-as-promised": "^8.0.0",
"@types/config": "^3.3.5",
"@types/connect-redis": "^0.0.23",
"@types/cookie-parser": "^1.4.3",
"@types/csurf": "^1.11.2",
"@types/es6-promisify": "^6.0.1",
"@types/express": "^5.0.1",
"@types/express-session": "^1.18.1",
"@types/git-rev-sync": "^2.0.2",
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.14",
"@types/lodash": "^4.14.197",
"@types/luxon": "^3",
"@types/node": "22.19.3",
"@types/nunjucks": "^3.2.3",
"@types/require-directory": "^2.1.2",
"@types/serve-favicon": "^2.5.4",
"@types/supertest": "^6.0.0",
"@types/totp-generator": "^0.0.8",
"@types/uuid": "^10.0.0",
"@types/validator": "^13",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"allure-commandline": "^2.34.1",
"allure-js-commons": "^3.3.0",
"allure-playwright": "^3.3.0",
"axios-debug-log": "^1.0.0",
"babel-loader": "^10.0.0",
"chai": "^6.2.0",
"chai-as-promised": "^8.0.0",
"copy-webpack-plugin": "^13.0.0",
"css-loader": "^7.0.0",
"debug": "^4.3.4",
"eslint": "^9.0.0",
"eslint-config-prettier": "^10.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^28.0.0",
"globals": "^16.2.0",
"html-webpack-plugin": "^5.5.3",
"husky": "^9.1.7",
"jest": "^29.6.2",
"jest-environment-jsdom": "^30.0.4",
"jest-html-reporter": "^4.0.0",
"jest-pact": "^0.13.0",
"lint-staged": "^15.5.1",
"mini-css-extract-plugin": "^2.7.6",
"nock": "^14.0.0",
"nodemon": "^3.0.0",
"playwright": "^1.56.1",
"playwright-core": "^1.56.1",
"postcss": "^8.4.27",
"prettier": "^3.0.0",
"sass": "^1.65.1",
"sass-loader": "^16.0.0",
"simple-git": "^3.27.0",
"sinon": "^20.0.0",
"sinon-chai": "^4.0.0",
"style-loader": "^4.0.0",
"stylelint": "^16.0.0",
"stylelint-config-standard": "^38.0.0",
"stylelint-config-standard-scss": "^14.0.0",
"supertest": "^7.0.0",
"ts-jest": "^29.2.6",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": ">=4.7.4 <5.10.0",
"webpack": "^5.88.2",
"webpack-cli": "^6.0.0",
"webpack-dev-middleware": "^7.0.0",
"webpack-node-externals": "^3.0.0"
},
"resolutions": {
"@opentelemetry/instrumentation-redis-4": "npm:@opentelemetry/instrumentation-redis@^0.57.0",
"@opentelemetry/instrumentation": "0.208.0",
"ajv@^6.12.4": "^6.14.0",
"ajv@^8.0.1": "^8.18.0",
"ajv@^8.9.0": "^8.18.0",
"semver": "^7.5.2",
"axios": "^1.13.5",
"@types/express-serve-static-core": "*",
"chai": "6.2.1",
"@types/node": "22.19.3",
"glob": "^13.0.1",
"glob/minimatch": "9.0.6",
"js-yaml": "^4.1.1",
"@azure/msal-browser": "4.27.0",
"@azure/functions": "4.11.0",
"superagent": "10.2.3",
"brace-expansion": "2.0.2",
"@isaacs/brace-expansion": "^5.0.1",
"diff": "^8.0.3",
"form-data": "^4.0.4",
"@eslint/plugin-kit": "^0.5.0",
"qs": "^6.14.2",
"jws": "3.2.3",
"tar": "~7.5.9",
"lodash": "~4.17.23",
"lodash-es": "~4.17.23"
},
"lint-staged": {
"*.{js,ts}": "eslint --cache --fix",
"*.{js,ts,css,md,html,json}": "prettier --write"
},
"packageManager": "yarn@4.12.0"
}