generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
187 lines (187 loc) · 7.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
{
"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": {
"postinstall": "[ -f .husky/_ ] && echo 'Husky already installed' || husky install",
"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: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",
"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": "NODE_TLS_REJECT_UNAUTHORIZED=0 codeceptjs run --steps -c src/test/end-to-end/codecept.conf.js --steps --reporter mocha-multi --verbose --grep @RET-PR",
"test:fullfunctional": "NODE_TLS_REJECT_UNAUTHORIZED=0 codeceptjs run --steps -c src/test/end-to-end/codecept.conf.js --steps --reporter mocha-multi --verbose --grep @RET-BAT",
"test:crossbrowser": "./bin/run-crossbrowser-tests.sh",
"test-crossbrowser-e2e": "IGNORE_SESSION_VALIDATION=true NODE_ENV=testing LOG_LEVEL=OFF NODE_PATH=. node_modules/.bin/codeceptjs run-multiple ${BROWSER_GROUP:-'--all'} -c src/test/end-to-end/saucelabs.conf.js --grep @RET-XB --steps --reporter mocha-multi",
"test:smoke": "NODE_TLS_REJECT_UNAUTHORIZED=0 codeceptjs --config ./src/test/smoke/codecept.smoke.conf.js run-workers 2 parallel",
"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/frontend": "^0.0.50-alpha",
"@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",
"@pact-foundation/pact": "9.18.1",
"@types/config": "^3.3.0",
"@types/connect-redis": "^0.0.23",
"@types/cookie-parser": "^1.4.3",
"@types/csurf": "^1.11.2",
"@types/express": "^5.0.0",
"@types/express-session": "^1.17.7",
"@types/lodash": "^4.14.194",
"@types/multer": "^1.4.7",
"@types/node": "^20.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.6",
"autobind-decorator": "^2.4.0",
"codeceptjs": "3.4.1",
"config": "^3.3.9",
"connect-redis": "^6.1.3",
"cookie-parser": "^1.4.6",
"csurf": "^1.11.0",
"dayjs": "^1.11.7",
"eslint-plugin-codeceptjs": "1.3.0",
"express": "^4.20.0",
"express-rate-limit": "^7.0.0",
"express-session": "^1.17.3",
"govuk-frontend": "^4.6.0",
"helmet": "^8.0.0",
"i18next": "^24.1.0",
"i18next-http-middleware": "^3.3.0",
"jest-environment-jsdom": "^29.5.0",
"jwt-decode": "^3.1.2",
"lodash": "v4.17.21",
"mocha": "^10.2.0",
"mocha-multi": "1.1.7",
"mochawesome": "7.1.3",
"multer": "^1.4.5-lts.1",
"nunjucks": "^3.2.4",
"playwright": "^1.32.3",
"postcode": "^5.1.0",
"prettier": "^2.8.7",
"puppeteer": "^23.0.0",
"redis": "^3.1.2",
"redis-mock": "^0.56.3",
"require-directory": "^2.1.1",
"sass": "^1.65.1",
"serve-favicon": "^2.5.0",
"session-file-store": "^1.5.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.0.4",
"uuid": "^10.0.0"
},
"devDependencies": {
"@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",
"@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": "^9.1.2",
"chai": "^4.3.7",
"chai-as-promised": "^8.0.0",
"copy-webpack-plugin": "^12.0.0",
"css-loader": "^7.0.0",
"debug": "^4.3.4",
"eslint": "^8.43.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^28.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-pact": "0.11.1",
"jest_workaround": "^0.79.19",
"lint-staged": "^15.0.0",
"mini-css-extract-plugin": "^2.7.5",
"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",
"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": {
"axios": "^1.7.4",
"@opentelemetry/instrumentation": "^0.57.0",
"pino-std-serializers": "^7.0.0",
"tough-cookie": "^5.0.0",
"minimist": "^1.2.6",
"semver": "^7.5.2",
"jsdom": "^25.0.0",
"shelljs": "^0.8.5",
"merge": "^2.1.1",
"micromatch": "^4.0.8",
"import-in-the-middle": "^1.4.2",
"follow-redirects": "^1.15.4",
"es5-ext": "^0.10.63",
"formidable": "^3.2.4",
"puppeteer": "^23.2.0",
"ws": "^8.17.1",
"ip": "^2.0.1",
"send": "^0.19.0",
"cookie": "^1.0.0",
"lodash": "^4.17.21",
"nanoid": "^3.3.8",
"path-to-regexp": "^0.1.12"
},
"packageManager": "[email protected]"
}