-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
203 lines (203 loc) · 12.4 KB
/
package.json
File metadata and controls
203 lines (203 loc) · 12.4 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
203
{
"name": "opal-frontend",
"version": "0.0.0",
"scripts": {
"merge:openapi": "openapi-merge-cli -c ./openapi/openapi-merge-config.json && yarn postprocess:openapi",
"postprocess:openapi": "node scripts/postprocess-openapi-merged.cjs",
"generate:openapi": "yarn merge:openapi && node scripts/generate-openapi.cjs && prettier --write \"src/app/flows/fines/services/opal-fines-service/**/*.{ts,js}\"",
"ng": "ng",
"start": "ng serve",
"build": "ng build --configuration production",
"watch": "ng build --watch --configuration development",
"test": "ng test --runner=vitest --watch=false",
"test:watch": "ng test --runner=vitest --watch",
"test:coverage": "ng test --runner=vitest --watch=false --coverage",
"test:a11y": "echo 'Covered in cypress testing' && exit 0",
"test:smoke": "node scripts/run-test-suite.js smoke",
"test:smoke:serial": "node scripts/run-test-suite.js smoke --serial",
"test:smoke:parallel": "node scripts/run-test-suite.js smoke --parallel",
"test:smoke:leaf": "node scripts/run-test-suite.js smoke --serial --no-reports --no-reset",
"test:functional": "node scripts/run-test-suite.js functional",
"test:functional:serial": "node scripts/run-test-suite.js functional --serial",
"test:functional:parallel": "node scripts/run-test-suite.js functional --parallel",
"test:functional:leaf": "node scripts/run-test-suite.js functional --serial --no-reports --no-reset",
"test:Chrome": "yarn test:functional --browser=chrome --parallel",
"test:Edge": "yarn test:functional --browser=edge --parallel",
"test:Firefox": "yarn test:functional --browser=firefox --parallel",
"test:component": "node scripts/run-test-suite.js component",
"test:component:parallel": "node scripts/run-test-suite.js component --parallel",
"test:component:leaf": "node scripts/run-test-suite.js component --serial --no-reports --no-reset",
"test:functionalOpalVideo": "CYPRESS_VIDEO=true node scripts/run-test-suite.js functional --mode=opal --browser=edge --serial --spec 'cypress/e2e/functional/opal/**/PO-530*.feature' --config 'videosFolder=functional-output/videos,screenshotsFolder=functional-output/screenshots/edge'",
"test:fullfunctional": "node scripts/run-test-suite.js fullfunctional",
"dev:ssr": "ng run opal-frontend:serve-ssr",
"dev:local-lib:ssr": "yarn run import:local:common-ui-lib && yarn run import:local:common-node-lib && ng run opal-frontend:serve-ssr",
"serve:ssr": "node dist/opal-frontend/server/main.js",
"build:ssr": "ng build --configuration production && ng run opal-frontend:server",
"build:serve:ssr": "yarn run build:ssr && yarn run serve:ssr",
"build:serve:local-lib:ssr": "yarn run import:local:common-ui-lib && yarn run import:local:common-node-lib && yarn run build:ssr && yarn run serve:ssr",
"import:local:common-ui-lib": "yarn remove @hmcts/opal-frontend-common && rm -rf .angular/cache && yarn add @hmcts/opal-frontend-common@file:$COMMON_UI_LIB_PATH/$(ls $COMMON_UI_LIB_PATH | grep .tgz | tail -1)",
"import:local:common-node-lib": "yarn remove @hmcts/opal-frontend-common-node && rm -rf .angular/cache && yarn add @hmcts/opal-frontend-common-node@file:$COMMON_NODE_LIB_PATH/$(ls $COMMON_NODE_LIB_PATH | grep .tgz | tail -1)",
"import:local:zephyr-automation-nodejs": "yarn remove @hmcts/zephyr-automation-nodejs && rm -rf .angular/cache && yarn add @hmcts/zephyr-automation-nodejs@file:$ZEPHYR_LIB_PATH",
"import:published:common-ui-lib": "yarn remove @hmcts/opal-frontend-common && rm -rf .angular/cache && VERSION=$(node -p \"require('./package.json').dependencies['@hmcts/opal-frontend-common']\") && yarn add @hmcts/opal-frontend-common@\"$VERSION\"",
"import:published:common-node-lib": "yarn remove @hmcts/opal-frontend-common-node && rm -rf .angular/cache && VERSION=$(node -p \"require('./package.json').dependencies['@hmcts/opal-frontend-common-node']\") && yarn add @hmcts/opal-frontend-common-node@\"$VERSION\"",
"import:published:zephyr-automation-nodejs": "yarn remove @hmcts/zephyr-automation-nodejs && rm -rf .angular/cache && VERSION=$(node -p \"require('./package.json').dependencies['@hmcts/zephyr-automation-nodejs']\") && yarn add @hmcts/zephyr-automation-nodejs@\"$VERSION\"",
"prerender": "ng run opal-frontend:prerender",
"pa11y": "echo 'Covered in cypress testing' && exit 0",
"lint": "yarn prettier && yarn lint:cypress && yarn lint:ng",
"lint:ng": "ng lint",
"lint:cypress": "eslint \"cypress/**/*.ts\"",
"prettier": "prettier --check \"./**/*.{ts,js,html,scss}\"",
"prettier:fix": "prettier --write \"./**/*.{ts,js,html,scss}\"",
"cypress": "cypress open",
"audit:save": "yarn npm audit --recursive --environment production --json > yarn-audit-known-issues",
"postinstall": "patch-package",
"check:steps": "cypress run --env cucumberOnlyMissingSteps=true",
"test:functional:tags": "node scripts/run-test-suite.js functional --tags",
"test:functional:uat_legacy": "TAGS=@UAT-Technical DEV_DEFAULT_APP_MODE=legacy LEGACY_ENABLED=true yarn test:functional:tags",
"find:duplicate:scenarios": "FEATURE_GLOB=\"cypress/e2e/functional/opal/features\" node scripts/find-duplicate-scenarios.js",
"check:cypress:test-metadata": "node scripts/check-cypress-test-metadata.js",
"reset-test-outputs": "tsx ./scripts/reset-test-outputs.ts",
"zephyr:cypress:jira-create": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cypress-jira-create.log -- tsx ./scripts/run-zephyr.ts --action-type=CREATE_TICKETS --process-type=CYPRESS_JSON_REPORT --report-path=functional-output/zephyr/cypress-report-1.json",
"zephyr:cypress:jira-update": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cypress-jira-update.log -- tsx ./scripts/run-zephyr.ts --action-type=UPDATE_TICKETS --process-type=CYPRESS_JSON_REPORT --report-path=functional-output/zephyr/cypress-report-1.json",
"zephyr:cypress:jira-execute": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cypress-jira-execute.log -- tsx ./scripts/run-zephyr.ts --action-type=CREATE_EXECUTION --process-type=CYPRESS_JSON_REPORT --report-path=functional-output/zephyr/cypress-report-1.json",
"zephyr:cucumber:functional:jira-create": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cucumber-functional-jira-create.log -- tsx ./scripts/run-zephyr.ts --action-type=CREATE_TICKETS --process-type=CUCUMBER_JSON_REPORT --report-path=functional-output/zephyr/cucumber-report.json",
"zephyr:cucumber:functional:jira-update": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cucumber-functional-jira-update.log -- tsx ./scripts/run-zephyr.ts --action-type=UPDATE_TICKETS --process-type=CUCUMBER_JSON_REPORT --report-path=functional-output/zephyr/cucumber-report.json",
"zephyr:cucumber:functional:jira-execute": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cucumber-functional-jira-execute.log -- tsx ./scripts/run-zephyr.ts --action-type=CREATE_EXECUTION --process-type=CUCUMBER_JSON_REPORT --report-path=functional-output/zephyr/cucumber-report.json",
"zephyr:cucumber:smoke:jira-create": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cucumber-smoke-jira-create.log -- tsx ./scripts/run-zephyr.ts --action-type=CREATE_TICKETS --process-type=CUCUMBER_JSON_REPORT --report-path=smoke-output/zephyr/cucumber-report.json",
"zephyr:cucumber:smoke:jira-update": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cucumber-smoke-jira-update.log -- tsx ./scripts/run-zephyr.ts --action-type=UPDATE_TICKETS --process-type=CUCUMBER_JSON_REPORT --report-path=smoke-output/zephyr/cucumber-report.json",
"zephyr:cucumber:smoke:jira-execute": "node ./scripts/run-with-log.js --log-path tmp/zephyr/zephyr-cucumber-smoke-jira-execute.log -- tsx ./scripts/run-zephyr.ts --action-type=CREATE_EXECUTION --process-type=CUCUMBER_JSON_REPORT --report-path=smoke-output/zephyr/cucumber-report.json",
"zephyr:test:component": "CODE=0; yarn test:component || CODE=$?; yarn zephyr:cypress:jira-execute; exit $CODE",
"zephyr:test:functional": "CODE=0; yarn test:functional --reset || CODE=$?; yarn zephyr:cucumber:functional:jira-execute; exit $CODE",
"zephyr:test:smoke": "CODE=0; yarn test:smoke --reset || CODE=$?; yarn zephyr:cucumber:smoke:jira-execute; exit $CODE"
},
"private": true,
"dependencies": {
"@angular/animations": "^21.1.3",
"@angular/common": "^21.1.3",
"@angular/compiler": "^21.1.3",
"@angular/core": "^21.1.3",
"@angular/forms": "^21.1.3",
"@angular/platform-browser": "^21.1.3",
"@angular/platform-browser-dynamic": "^21.1.3",
"@angular/platform-server": "^21.1.3",
"@angular/router": "^21.1.3",
"@angular/ssr": "^21.1.3",
"@badeball/cypress-cucumber-preprocessor": "^24.0.0",
"@cypress/webpack-preprocessor": "^7.0.0",
"@hmcts/info-provider": "^1.1.0",
"@hmcts/nodejs-healthcheck": "^1.8.5",
"@hmcts/nodejs-logging": "^4.0.4",
"@hmcts/opal-frontend-common": "^0.0.72",
"@hmcts/opal-frontend-common-node": "^0.0.29",
"@hmcts/properties-volume": "^1.1.0",
"@hmcts/zephyr-automation-nodejs": "0.0.7",
"@microsoft/applicationinsights-web": "^3.3.5",
"@ministryofjustice/frontend": "^9.0.0",
"@ngrx/signals": "^21.0.0",
"accessible-autocomplete": "^3.0.0",
"applicationinsights": "~3.14.0",
"axios": "^1.6.2",
"body-parser": "^2.0.0",
"config": "^4.0.0",
"connect-redis": "^9.0.0",
"cookie-parser": "^1.4.6",
"csrf-csrf": "^4.0.0",
"domino-ext": "^2.1.4",
"express": "^5.0.0",
"express-session": "^1.17.3",
"fast-sort": "^3.4.1",
"govuk-frontend": "^6.0.0",
"helmet": "^8.0.0",
"home-office-kit": "^1.2.0",
"http-proxy-middleware": "^3.0.0",
"launchdarkly-js-client-sdk": "^3.1.4",
"luxon": "^3.4.3",
"ng": "^0.0.0",
"prettier": "^3.0.3",
"redis": "^5.0.0",
"rxjs": "~7.8.0",
"session-file-store": "^1.5.0",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"tslib": "^2.3.0",
"webpack": "^5.93.0",
"xml2js": "^0.6.2",
"zone.js": "~0.16.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^21.1.3",
"@angular-eslint/builder": "21.3.1",
"@angular-eslint/eslint-plugin": "21.3.1",
"@angular-eslint/eslint-plugin-template": "21.3.1",
"@angular-eslint/schematics": "21.3.1",
"@angular-eslint/template-parser": "21.3.1",
"@angular/build": "21.2.7",
"@angular/cli": "^21.1.3",
"@angular/compiler-cli": "^21.1.3",
"@cypress/grep": "^6.0.0",
"@openapitools/openapi-generator-cli": "^2.25.0",
"@types/config": "^4.0.0",
"@types/cookie-parser": "^1.4.6",
"@types/express": "^5.0.0",
"@types/express-session": "^1.17.10",
"@types/js-yaml": "^4",
"@types/lodash": "^4.17.20",
"@types/luxon": "^3.4.2",
"@types/node": "^24.0.0",
"@types/session-file-store": "^1.2.5",
"@typescript-eslint/eslint-plugin": "8.58.2",
"@typescript-eslint/parser": "8.58.2",
"@vitest/coverage-v8": "^4.0.8",
"axe-core": "^4.8.4",
"browser-sync": "^3.0.2",
"cypress": "^15.0.0",
"cypress-axe": "^1.5.0",
"cypress-mochawesome-reporter": "^4.0.0",
"cypress-multi-reporters": "^2.0.0",
"cypress-parallel": "^0.15.0",
"eslint": "^10.0.0",
"eslint-plugin-jsdoc": "^62.0.0",
"js-yaml": "^4.1.0",
"jsdom": "^29.0.0",
"junit-report-merger": "^9.0.0",
"mocha": "^11.0.0",
"mocha-junit-reporter": "^2.2.1",
"mochawesome": "^7.1.3",
"mochawesome-merge": "^5.0.0",
"mochawesome-report-generator": "^6.2.0",
"openapi-merge-cli": "^1.3.2",
"patch-package": "^8.0.0",
"swagger-cli": "^4.0.4",
"tsconfig-paths-webpack-plugin": "^4.2.0",
"tsx": "^4.21.0",
"typescript": "~6.0.0",
"vitest": "^4.0.8"
},
"packageManager": "yarn@4.13.0",
"cypress-cucumber-preprocessor": {
"nonGlobalStepDefinitions": true
},
"resolutions": {
"@cucumber/messages": "^32.0.0",
"browserslist": "^4.28.1",
"cookie": "^1.0.0",
"on-headers": "^1.1.0",
"brace-expansion": "^5.0.0",
"tmp": "^0.2.4",
"tar": "^7.5.8",
"diff": "^9.0.0",
"@actions/http-client/undici": "^7.0.0",
"esbuild": "^0.28.0",
"@badeball/cypress-cucumber-preprocessor/glob": "13.0.6",
"@cucumber/cucumber/glob": "13.0.6",
"cypress-parallel/glob": "13.0.6",
"@npmcli/package-json/glob": "13.0.6",
"cacache/glob": "13.0.6",
"mocha/glob": "13.0.6",
"mochawesome-merge/glob": "13.0.6",
"module-lookup-amd/glob": "13.0.6",
"node-gyp/glob": "13.0.6",
"rimraf/glob": "13.0.6",
"shelljs/glob": "13.0.6"
}
}