-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.json
152 lines (152 loc) · 7.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
{
"name": "sya",
"description": "Submit Your Appeal",
"version": "0.0.1",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"start": "cross-env NODE_PATH=. NODE_OPTIONS=--openssl-legacy-provider node server.js",
"start:dev": "redis-server 2>&1 & ./bin/generate-ssl-options.sh && cross-env NODE_ENV=development NODE_PATH=. NODE_OPTIONS=--openssl-legacy-provider node server.js",
"build": "NODE_ENV=production NODE_OPTIONS=--openssl-legacy-provider webpack --config webpack.config.js",
"dev": "./bin/generate-ssl-options.sh && cross-env NODE_ENV=development NODE_PATH=. NODE_OPTIONS=--openssl-legacy-provider POSTCODE_LOOKUP_TOKEN=$(sh ./bin/pull_postcode_token.sh) nodemon server.js",
"debug": "NODE_ENV=development cross-env NODE_PATH=. NODE_OPTIONS=--openssl-legacy-provider nodemon --inspect server.js",
"iba:shuttered:start:dev": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=false IS_IBA=true yarn start:dev",
"iba:shuttered:dev": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=false IS_IBA=true yarn dev",
"iba:shuttered:debug": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=false IS_IBA=true yarn debug",
"iba:start:dev": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=true IS_IBA=true yarn start:dev",
"iba:dev": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=true IS_IBA=true yarn dev",
"iba:debug": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=true IS_IBA=true yarn debug",
"iba:dev:aat": "cross-env TRIBUNALS_CASE_API_URL=http://sscs-tribunals-api-aat.service.core-compute-aat.internal yarn iba:dev",
"iba:shuttered:dev:aat": "cross-env TRIBUNALS_CASE_API_URL=http://sscs-tribunals-api-aat.service.core-compute-aat.internal yarn iba:shuttered:dev",
"iba:debug:aat": "cross-env TRIBUNALS_CASE_API_URL=http://sscs-tribunals-api-aat.service.core-compute-aat.internal yarn iba:debug",
"setup": "exit 0",
"mock": "yarn mock-uploader & yarn debug",
"test:unit": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=true NODE_PATH=. NODE_ENV=test mocha --exit 'test/unit/**/*.test.js'",
"test:assets": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=true NODE_PATH=. NODE_ENV=test NODE_OPTIONS=--openssl-legacy-provider mochapack 'test/assets/**/*.test.js' --webpack-config test/webpack.config.js --require @babel/register",
"test": "yarn test:unit && yarn test:assets",
"test:all": "cross-env NODE_PATH=. NODE_ENV=test yarn test && yarn test:assets && yarn test:smoke",
"lint": "cross-env NODE_PATH=. eslint --fix .",
"test:smoke": "yarn playwright install && cross-env NODE_PATH=. NODE_ENV=test codeceptjs run -c test/e2e/smoke.conf.js --grep @smoke --steps --verbose --reporter mocha-multi",
"test:evidence-upload": "cross-env NODE_PATH=. NODE_ENV=test codeceptjs run -c test/e2e/ --grep @evidence-upload --steps",
"test:mutation": "cross-env NODE_PATH=. NODE_ENV=test codeceptjs run-multiple parallel --all -c test/e2e/ --grep @functional --steps --reporter mocha-multi",
"test:functional": "cross-env NODE_PATH=. NODE_ENV=test codeceptjs run-multiple parallel --all -c test/e2e/ --grep @functional --steps --reporter mocha-multi",
"test:fullfunctional": "cross-env NODE_PATH=. NODE_ENV=test codeceptjs run-multiple parallel --all -c test/e2e/ --grep 'functional|fullFunctional' --steps --reporter mocha-multi",
"test:e2e-pages": "cross-env NODE_PATH=. NODE_ENV=test codeceptjs run-multiple pages -c test/e2e/ --steps --reporter mocha-multi",
"test:functional:batch": "cross-env NODE_PATH=. NODE_ENV=test codeceptjs run -c test/e2e/ --grep @batch-$BATCH --steps",
"test:functional:batches": "for i in `seq -w 1 12`; do BATCH=$i yarn test:functional:batch; [ $? -ne 0 ] && exit $?; done; exit 0;",
"test:coverage": "cross-env INFECTED_BLOOD_COMPENSATION_ENABLED=true NODE_PATH=. NODE_ENV=test nyc mocha 'test/unit/**/*.test.js'",
"test:crossbrowser": "yarn playwright install && cross-env NODE_PATH=. NODE_ENV=test codeceptjs run-multiple ${BROWSER_GROUP:-'--all'} -c test/e2e/saucelabs.conf.js --grep @crossbrowser --steps --reporter mocha-multi --verbose",
"test:a11y": "cross-env NODE_PATH=. NODE_ENV=a11y LOG_LEVEL=ERROR mocha --exit test/accessibility/a11y.js --exit --timeout 60000 --reporter mochawesome --reporter-options reportDir=functional-output,reportFilename=a11y,inlineAssets=true,reportTitle=submit-your-appeal",
"fortifyScan": "./test/java/gradlew -p test/java fortifyScan",
"mock-uploader": "node test/file_acceptor/evidence_uploader.js",
"mock-ccd": "node mocks/ccd/server.js"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@cypress/request": "^3.0.0",
"@cypress/request-promise": "^5.0.0",
"@hmcts/cookie-manager": "^1.0.0",
"@hmcts/div-idam-express-middleware": "^6.6.2",
"@hmcts/nodejs-healthcheck": "^1.8.0",
"@hmcts/one-per-page": "^5.4.0",
"@hmcts/properties-volume": "^1.1.0",
"@hmcts/uk-bank-holidays": "^1.0.2",
"accessible-autocomplete": "^2.0.4",
"applicationinsights": "^2.7.3",
"babel-loader": "^9.1.3",
"body-parser": "^1.20.2",
"chalk": "^4.1.2",
"clean-webpack-plugin": "^4.0.0",
"config": "^3.3.9",
"cookie-parser": "^1.4.6",
"cookies": "^0.8.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^7.1.2",
"csurf": "^1.11.0",
"express": "^4.21.2",
"express-nunjucks": "^3.1.2",
"file-loader": "^6.2.0",
"formidable": "^3.5.1",
"govuk-frontend": "^4.7.0",
"govuk_template_jinja": "^0.26.0",
"graceful-fs": "^4.2.11",
"helmet": "^7.0.0",
"html-entities": "^2.4.0",
"http-status-codes": "^2.2.0",
"jquery": "^3.7.1",
"jquery-modal": "^0.9.2",
"js-base64": "^3.7.5",
"libphonenumber-js": "^1.10.43",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"mini-css-extract-plugin": "^2.9.1",
"moment": "^2.29.4",
"nunjucks": "^3.2.4",
"nunjucks-loader": "^3.0.0",
"optimize-css-assets-webpack-plugin": "^6.0.1",
"parse-full-name": "^1.2.6",
"redis": "^4.6.8",
"sass": "^1.77.8",
"sass-loader": "^16.0.0",
"style-loader": "^4.0.0",
"superagent": "^8.1.2",
"superagent-csrf": "^1.0.0",
"terser-webpack-plugin": "^5.3.10",
"uuid": "^9.0.0",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4",
"webpack-dev-middleware": "^7.3.0",
"webpack-merge": "^6.0.1"
},
"devDependencies": {
"@babel/register": "^7.24.6",
"@hmcts/eslint-config": "^1.4.0",
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"chai-jq": "^0.0.9",
"codeceptjs": "^3.5.14",
"eslint": "^8.48.0",
"eslint-plugin-mocha": "^5.0.0",
"fs": "^0.0.1-security",
"gulp": "^5.0.0",
"gulp-cli": "^3.0.0",
"jsdom": "^16.5.0",
"mocha": "^6.1.4",
"mocha-multi": "^1.1.0",
"mocha-param": "^2.0.0",
"mochapack": "^2.1.4",
"mochawesome": "^4.0.1",
"nock": "^13.3.3",
"nodemon": "^3.1.7",
"nyc": "^15.1.0",
"pa11y": "^8.0.0",
"playwright": "^1.46.1",
"pre-commit": "^1.2.2",
"proxyquire": "^2.1.3",
"puppeteer": "^23.2.0",
"rewire": "^7.0.0",
"sinon": "^15.2.0",
"sinon-chai": "^3.7.0",
"supertest": "^6.3.3",
"webdriverio": "8.10.5",
"webpack-node-externals": "3.0.0"
},
"resolutions": {
"express": "^4.21.0",
"debug": "^3.2.7",
"json-schema": "^0.4.0",
"qs": "^6.11.2",
"redis": "^3.1.1",
"micromatch": "^4.0.8",
"puppeteer": "^23.2.0",
"path-to-regexp": "^0.1.10"
},
"packageManager": "[email protected]"
}