-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
201 lines (201 loc) · 7.75 KB
/
package.json
File metadata and controls
201 lines (201 loc) · 7.75 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
{
"name": "et-sya",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=20.8.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": "eslint --fix && prettier --write",
"*.{css,scss}": "stylelint --fix && prettier --write"
},
"scripts": {
"setup:husky": "[ -f .husky/_ ] && echo 'Husky already installed' || husky install",
"postinstall": "yarn setup:husky && yarn build",
"start": "NODE_ENV=production yarn node src/main/server.js",
"start:dev": "nodemon --config nodemon.json",
"start:dev-red": "redis-server 2>&1 & nodemon --config nodemon.json",
"lint": "sass-lint -v -q && eslint . --ext .js,.jsx,.ts,.tsx --fix && prettier --check ./src/",
"build": "yarn webpack --config webpack.config.js",
"build:ts": "tsc -P . --outDir ./src/main",
"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 --maxWorkers=50%",
"test:pact": "jest -c jest.pact.config.js --detectOpenHandles --runInBand",
"test:coverage": "jest --coverage",
"test:routes": "jest -c jest.routes.config.js",
"test:translations": "jest ./src/test/unit/translations.spec.ts",
"test:mutation": "yarn stryker run stryker.config.json",
"test:a11y": "echo 'a11y tests are ran through GitHub actions as a mandatory step in order to save time on the main pipeline and unable to mock at the moment. Story RET-2038 created for same'",
"tests:a11y": "NODE_TLS_REJECT_UNAUTHORIZED=0 NODE_ENV=test LOG_LEVEL=ERROR mocha --exit --reporter mochawesome --require ts-node/register --require tsconfig-paths/register src/test/a11y/a11y.ts --timeout 60000 --reporter-options reportDir=functional-output/accessibility-report,reportFilename=a11y,inlineAssets=true,reportTitle=et-sya-frontend",
"test:accessibility": "yarn playwright install && yarn playwright test --project=chromium --grep @Accessibility",
"publish-pact": "NODE_PATH=. NODE_CONFIG_DIR=./config LOG_LEVEL=error node -r ts-node/register src/test/api/pact/publish/publish.ts",
"fortifyScan": "./src/test/java/gradlew -p src/test/java fortifyScan",
"test:pact:run-and-publish": "yarn test:pact && yarn publish-pact",
"sonar-scan": "sonar-scanner",
"test:local": "NODE_TLS_REJECT_UNAUTHORIZED=0 codeceptjs run --steps -c src/test/end-to-end/codecept.conf.js --steps --reporter mocha-multi --verbose",
"test:functional-chromium": "yarn playwright install chromium && yarn playwright test --project=chromium --grep @RET-BAT",
"test:functional": "yarn playwright install chromium && yarn playwright test --project=chromium --grep @RET-BAT",
"test:functional-webkit": "yarn playwright install webkit && yarn playwright test --project=webkit --grep @RET-BAT",
"test:functional-firefox": "yarn playwright install firefox && yarn playwright test --project=firefox --grep @RET-BAT",
"test:smoke": "yarn playwright install chromium && yarn playwright test --project=chromium --grep @Smoke",
"cichecks": "yarn && yarn build && yarn lint && yarn test && yarn tests:a11y",
"prepare": "husky install"
},
"dependencies": {
"@faker-js/faker": "^9.0.0",
"@hmcts/cookie-manager": "^1.0.0",
"@hmcts/info-provider": "^1.0.0",
"@hmcts/nodejs-healthcheck": "^1.8.0",
"@hmcts/nodejs-logging": "^4.0.4",
"@hmcts/properties-volume": "^0.0.14",
"@launchdarkly/node-server-sdk": "^9.0.0",
"@types/config": "^3.3.0",
"@types/connect-redis": "^0.0.23",
"@types/cookie-parser": "^1.4.3",
"@types/express": "^5.0.0",
"@types/express-session": "^1.17.7",
"@types/lodash": "^4.14.194",
"@types/multer": "^1.4.7",
"@types/node": "^22.0.0",
"@types/nunjucks": "^3.2.2",
"@types/require-directory": "^2.1.2",
"@types/serve-favicon": "^2.5.4",
"@types/session-file-store": "^1.2.2",
"applicationinsights": "2.9.8",
"autobind-decorator": "^2.4.0",
"config": "^4.0.0",
"connect-redis": "^6.1.3",
"cookie-parser": "^1.4.6",
"csrf-csrf": "^4.0.3",
"dayjs": "^1.11.7",
"express": "^4.20.0",
"express-rate-limit": "^8.3.1",
"express-session": "^1.18.2",
"govuk-frontend": "^6.0.0",
"helmet": "^8.0.0",
"i18next": "^25.0.0",
"i18next-http-middleware": "^3.3.0",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.23",
"multer": "2.1.1",
"nunjucks": "^3.2.4",
"postcode": "^5.1.0",
"prettier": "^2.8.7",
"puppeteer": "^24.38.0",
"redis": "^3.1.2",
"redis-mock": "^0.56.3",
"require-directory": "^2.1.1",
"sass": "^1.97.3",
"serve-favicon": "^2.5.0",
"session-file-store": "^1.5.0",
"typescript": "5.1.6",
"uuid": "^11.0.0"
},
"devDependencies": {
"@axe-core/playwright": "4.11.2",
"@babel/core": "^7.21.4",
"@babel/eslint-parser": "^7.21.3",
"@babel/preset-env": "^7.21.4",
"@codeceptjs/allure-legacy": "^1.0.2",
"@jest/globals": "^29.5.0",
"@pact-foundation/pact": "^15.0.0",
"@playwright/test": "^1.51.0",
"@stryker-mutator/core": "^9.3.0",
"@stryker-mutator/jest-runner": "^9.3.0",
"@swc/core": "^1.3.76",
"@swc/helpers": "^0.5.1",
"@swc/jest": "^0.2.29",
"@types/chai-as-promised": "^8.0.0",
"@types/git-rev-sync": "2.0.2",
"@types/jest": "^29.5.1",
"@types/redis-mock": "^0.17.1",
"@types/sinon-chai": "^4.0.0",
"@types/supertest": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"babel-loader": "^10.0.0",
"chai": "^4.3.7",
"chai-as-promised": "^8.0.0",
"codeceptjs": "3.7.6",
"copy-webpack-plugin": "^13.0.0",
"css-loader": "^7.0.0",
"debug": "^4.3.4",
"eslint": "^8.43.0",
"eslint-config-prettier": "^10.0.0",
"eslint-plugin-codeceptjs": "1.3.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^29.0.0",
"eslint-plugin-prettier": "^4.2.1",
"git-rev-sync": "3.0.2",
"html-webpack-plugin": "^5.5.1",
"husky": "^9.0.0",
"jest": "^29.6.2",
"jest-environment-jsdom": "^29.5.0",
"jest-pact": "0.11.4",
"jest_workaround": "^0.79.19",
"lint-staged": "^15.0.0",
"mini-css-extract-plugin": "^2.7.5",
"mocha": "^10.2.0",
"mocha-multi": "1.1.7",
"mochawesome": "7.1.4",
"nock": "^13.3.0",
"nodemon": "^3.0.0",
"pa11y": "^8.0.0",
"path": "^0.12.7",
"request": "^2.88.2",
"sass-lint": "^1.13.1",
"sass-loader": "^16.0.0",
"sinon": "^19.0.0",
"sinon-chai": "^4.0.0",
"sonar-scanner": "^3.1.0",
"style-loader": "^4.0.0",
"supertest": "^7.0.0",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"webdriverio": "^8.8.6",
"webpack": "^5.80.0",
"webpack-cli": "^5.0.2",
"webpack-dev-middleware": "^7.0.0",
"webpack-node-externals": "^3.0.0"
},
"peerDependencies": {
"@faker-js/faker": "^5.5.3 || ^8.0.0 || ^9.0.0"
},
"resolutions": {
"@swc/core": "1.3.82",
"axios": "^1.13.5",
"@opentelemetry/instrumentation": "^0.214.0",
"pino-std-serializers": "^7.0.0",
"tough-cookie": "^5.0.0",
"minimist": "^1.2.6",
"node-gyp": "^12.2.0",
"minizlib": "^3.1.0",
"semver": "^7.5.2",
"jsdom": "^29.0.0",
"js-beautify/glob": "11.1.0",
"shelljs": "^0.10.0",
"merge": "^2.1.1",
"basic-ftp": "^5.2.0",
"formidable": "^3.5.4",
"immutable": "^5.1.5",
"lodash": "^4.17.23",
"editorconfig/minimatch": "^10.0.0",
"puppeteer": "^24.38.0",
"tmp": "^0.2.4",
"ws": "^8.17.1",
"cookie": "^1.0.0",
"path-to-regexp": "^1.9.0",
"tar-fs": "^3.1.1",
"brace-expansion": "^5.0.0",
"form-data": "^4.0.4",
"qs": "^6.14.1",
"tar": "^7.5.10",
"serialize-javascript": "^7.0.4",
"underscore": "^1.13.8",
"yauzl": "3.2.1",
"picomatch": "^4.0.4"
},
"packageManager": "yarn@4.12.0"
}