generated from hmcts/expressjs-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
183 lines (183 loc) · 8.45 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
{
"name": "civil-citizen-ui",
"version": "0.0.1",
"private": true,
"engines": {
"node": ">=14.0.0"
},
"scripts": {
"start": "NODE_ENV=production ./node_modules/.bin/ts-node -r tsconfig-paths/register src/main/server.ts",
"start:dev": "NODE_ENV=development yarn start:redis && nodemon --config nodemon.json",
"start:redis": "docker-compose -f ./compose/draft-store.yml up -d",
"startwin": "NODE_ENV=development && ./node_modules/.bin/ts-node -r tsconfig-paths/register src/main/server.ts",
"startwin:dev": "nodemon --config nodemon.json --exec yarn startwin",
"lint": "stylelint **/*.scss -v -q && eslint . --ext .js,.jsx,.ts,.tsx",
"lint:win": "yarn lint -c win.eslint.json",
"build": "yarn webpack --config webpack.config.js",
"build:prod": "NODE_ENV=production yarn webpack --mode production --config webpack.config.js",
"test": "echo -c jest.config.js",
"test:coverage": "jest --coverage --maxWorkers=4 --logHeapUsage --silent",
"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.'",
"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.mock-test.ts --timeout 60000 --reporter-options reportDir=functional-output/accessibility-report,reportFilename=a11y,inlineAssets=true,reportTitle=civil-citizen-ui",
"sonar-scan": "sonar-scanner",
"test:smoke": "MOCHAWESOME_REPORTFILENAME=smokeTests REPORT_DIR=test-results/smokeTest yarn test:functional:codeceptjs run-workers 1 --grep @smoketest --reporter mocha-multi --verbose",
"test:cui-r1": "MOCHAWESOME_REPORTFILENAME=cui yarn test:functional:codeceptjs run-workers --suites 9 --grep @regression-cui-r1 --reporter mocha-multi --verbose",
"test:ocmc": "MOCHAWESOME_REPORTFILENAME=ocmc yarn test:functional:codeceptjs run-workers --suites 9 --grep @ocmc --reporter mocha-multi --verbose",
"test:cui-cp": "MOCHAWESOME_REPORTFILENAME=cui yarn test:functional:codeceptjs run-workers --suites 9 --grep @regression-cp --reporter mocha-multi --verbose",
"test:cui-regression": "MOCHAWESOME_REPORTFILENAME=cui codeceptjs run-workers --suites 13 --grep @regression --config src/test/functionalTests/codecept.conf.js --reporter mocha-multi --verbose",
"test:carm": "MOCHAWESOME_REPORTFILENAME=carm yarn test:functional:codeceptjs run-workers --suites 2 --grep @regression-carm --reporter mocha-multi --verbose",
"test:functional": "src/test/functionalTests/run-functional-tests.sh",
"test:fullfunctional": "MOCHAWESOME_REPORTFILENAME=functionalTests codeceptjs run-workers --suites 4 --grep @nightly --config src/test/functionalTests/codecept.conf.js --reporter mocha-multi --verbose",
"test:crossbrowser-functional": "MOCHAWESOME_REPORTFILENAME=crossbrowser codeceptjs run-multiple --grep @crossbrowser ${BROWSER_GROUP:-'--all'} -c src/test/functionalTests/saucelabs.conf.js --reporter mocha-multi",
"test:crossbrowser": "src/test/functionalTests/run-crossbrowser-tests.sh",
"test:debug": "codeceptjs run --config src/test/functionalTests/codecept.conf.js --grep @debug",
"test:crossbrowser:playwright": "yarn test:crossbrowser:codeceptjs run-multiple crossBrowser",
"test:crossbrowser:codeceptjs": "codeceptjs --config ./src/test/cross-browser/codecept.conf.js",
"test:functional:codeceptjs": "codeceptjs --config src/test/functionalTests/codecept.conf.js",
"test:api": "MOCHAWESOME_REPORTFILENAME=api npx codeceptjs -c 'e2e/codecept.conf.js' run --grep @test --reporter mocha-multi --verbose",
"cichecks": "yarn && yarn build && yarn lint && yarn test:coverage && yarn test:routes && yarn test:a11y",
"cichecks:win": "yarn && yarn build && yarn lint:win && yarn test:coverage && yarn test:routes && yarn test:a11y",
"wiremock:start": "wiremock --root-dir ./wiremock --port 1111",
"start:e2e": "NODE_ENV=e2eTest ./node_modules/.bin/ts-node -r tsconfig-paths/register src/main/server.ts",
"test:e2e": "yarn testgalip:e2e && MOCHAWESOME_REPORTFILENAME=e2e yarn test:functional:codeceptjs run-workers --suites 4 --grep @e2e --reporter mocha-multi --verbose",
"testgalip:e2e": "MOCHAWESOME_REPORTFILENAME=galip yarn test:functional:codeceptjs run --grep @galip --reporter mocha-multi --verbose"
},
"dependencies": {
"@hmcts/cookie-manager": "^1.0.0",
"@hmcts/info-provider": "^1.2.1",
"@hmcts/nodejs-healthcheck": "^1.8.0",
"@hmcts/nodejs-logging": "^4.0.4",
"@hmcts/properties-volume": "^0.0.14",
"@ministryofjustice/frontend": "^1.6.3",
"@types/config": "^3.3.0",
"@types/cookie-parser": "^1.4.3",
"@types/cookie-session": "^2.0.44",
"@types/csurf": "^1.9.36",
"@types/es6-promisify": "^6.0.1",
"@types/express": "^4.17.21",
"@types/express-session": "^1.17.5",
"@types/glob": "^8.0.0",
"@types/helmet": "^4.0.0",
"@types/lodash": "^4.14.191",
"@types/luxon": "^3.2.0",
"@types/multer": "^1.4.7",
"@types/node": "^18.11.10",
"@types/nunjucks": "^3.2.1",
"@types/require-directory": "^2.1.1",
"@types/serve-favicon": "^2.5.1",
"@types/uuid": "^10.0.0",
"applicationinsights": "^2.9.5",
"axios": "^1.7.4",
"boolean": "^3.2.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"config": "^3.3.8",
"connect-redis": "^7.1.0",
"cookie-parser": "^1.4.6",
"cookie-session": "^2.0.0",
"crypto-js": "^4.2.0",
"csurf": "^1.11.0",
"dayjs": "^1.11.7",
"express": "^4.19.2",
"express-async-errors": "^3.1.1",
"express-session": "^1.17.3",
"follow-redirects": "1.15.6",
"glob": "^10.0.0",
"govuk-frontend": "5.3.1",
"helmet": "^7.0.0",
"i18next": "^22.4.6",
"i18next-fs-backend": "^2.1.1",
"i18next-http-middleware": "^3.2.1",
"ioredis": "^5.3.2",
"ioredis-mock": "^8.2.6",
"jquery": "^3.7.1",
"jsdom": "^22.1.0",
"jwt-decode": "^3.1.2",
"launchdarkly-node-client-sdk": "^3.0.0",
"launchdarkly-node-server-sdk": "^7.0.1",
"lodash": "^4.17.21",
"luxon": "^3.2.1",
"minimatch": "^10.0.1",
"multer": "^1.4.5-lts.1",
"nunjucks": "^3.2.4",
"otplib": "^12.0.1",
"reflect-metadata": "^0.1.13",
"require-directory": "^2.1.1",
"serve-favicon": "^2.5.0",
"stylelint": "^16.9.0",
"stylelint-config-standard-scss": "^13.1.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.1.1",
"typescript": "^4.9.5",
"uuid": "^9.0.0",
"validator": "^13.7.0"
},
"devDependencies": {
"@babel/core": "^7.19.6",
"@babel/eslint-parser": "^7.19.1",
"@babel/preset-env": "^7.20.2",
"@playwright/test": "^1.41.2",
"@types/copy-webpack-plugin": "^10.1.0",
"@types/jest": "^29.4.0",
"@types/supertest": "^2.0.12",
"@typescript-eslint/eslint-plugin": "^5.50.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.50.0",
"@typescript-eslint/parser": "^5.50.0",
"babel-loader": "^9.1.0",
"codeceptjs": "^3.3.7",
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.2",
"debug": "^4.3.4",
"deep-equal-in-any-order": "^2.0.2",
"eslint": "8.33.0",
"eslint-plugin-codeceptjs": "^1.3.0",
"html-webpack-plugin": "^5.5.0",
"html_codesniffer": "^2.5.1",
"jest": "^29.4.1",
"jest-junit": "^15.0.0",
"jest-launchdarkly-mock": "^2.0.3",
"mini-css-extract-plugin": "^2.7.2",
"mocha": "^10.2.0",
"mocha-junit-reporter": "^2.2.1",
"mocha-multi": "1.1.7",
"mochawesome": "7.1.3",
"nock": "^13.2.9",
"node-cache": "^5.1.2",
"nodemon": "^2.0.22",
"pa11y": "^6.2.3",
"sass": "^1.57.1",
"sass-loader": "^13.2.0",
"sinon": "^15.0.0",
"sonar-scanner": "^3.1.0",
"style-loader": "^3.3.1",
"supertest": "^6.3.1",
"supertest-session": "^4.1.0",
"totp-generator": "^0.0.14",
"ts-jest": "^29.0.3",
"ts-loader": "^9.4.2",
"tslint": "^6.1.3",
"webdriverio": "^8.3.2",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-dev-middleware": "7.1.0",
"webpack-node-externals": "^3.0.0",
"wiremock-standalone": "^3.2.1"
},
"resolutions": {
"node-fetch": "^2.6.7",
"shelljs": "^0.8.5",
"glob-parent": "^6.0.1",
"qs": "^6.9.3",
"flat": "^5.0.1",
"debug": "^4.3.4",
"semver": "^7.5.2",
"minimist": "^1.2.8",
"tough-cookie": "^4.1.3",
"ip": ">=2.0.1",
"tar": "6.2.1",
"braces": "^3.0.3",
"ws": "^8.17.1",
"axios": "^1.7.4"
},
"packageManager": "[email protected]"
}