-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
156 lines (156 loc) · 8.1 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
{
"name": "probate-caveats-frontend",
"description": "Web app to check if an applicant is eligible to apply for caveats online",
"version": "0.0.1",
"license": "MIT",
"engines": {
"node": ">=14.9.3"
},
"scripts": {
"setup": "NODE_PATH=. yarn sass && yarn git-info && yarn sass-ie8",
"setup-sass": "NODE_PATH=. yarn sass && yarn sass-ie8",
"start": "NODE_PATH=. node server.js",
"start:ld": "NODE_ENV=dev NODE_PATH=. node server.js",
"debug": "NODE_PATH=. node inspect server.js",
"prestart:dev": "yarn sass:watch",
"start:dev": "NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"start:dev:ld": "NODE_ENV=dev NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"start:dev:ld:aat": "NODE_ENV=dev-aat NODE_PATH=. nodemon -e js,json,html,njk -x 'node server.js'",
"sass:watch": "NODE_PATH=. watch 'yarn -s sass' app/assets/sass/ &",
"sass": "NODE_PATH=. node-sass app/assets/sass/application.scss --output public/stylesheets --quiet --output-style expanded --source-map true --include-path node_modules/govuk_template_jinja/assets/stylesheets --include-path node_modules/govuk_frontend_toolkit/stylesheets --include-path node_modules/govuk-elements-sass/public/sass/",
"sass-ie8": "NODE_PATH=. node-sass app/assets/sass/application-ie8.scss --output public/stylesheets --quiet --output-style expanded --source-map true --include-path node_modules/govuk_template_jinja/assets/stylesheets --include-path node_modules/govuk_frontend_toolkit/stylesheets --include-path node_modules/govuk-elements-sass/public/sass/",
"test": "npx if-env CI=true && mkdir -m 777 output && exit 0 || yarn test-unit $@ && yarn test-component $@",
"test-unit": "NODE_ENV=testing NODE_PATH=. LOG_LEVEL=error mocha test/unit --reporter spec --recursive --timeout 10000",
"test-component": "NODE_ENV=testing NODE_PATH=. LOG_LEVEL=error mocha test/component --reporter spec --recursive --timeout 10000",
"test:a11y": "NODE_ENV=testing NODE_PATH=. LOG_LEVEL=ERROR mocha --exit test/accessibility --reporter spec --recursive --timeout 15000 --exit --reporter mochawesome --reporter-options reportDir=functional-output,reportFilename=a11y",
"test-accessibility": "NODE_ENV=testing NODE_PATH=. LOG_LEVEL=error ENABLE_TRACKING=false mocha test/accessibility --timeout 30000",
"test-e2e": "yarn playwright install && NODE_ENV=testing NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --grep @e2e --steps --reporter mocha-multi",
"test-crossbrowser-e2e": "yarn playwright install && NODE_ENV=testing NODE_PATH=. codeceptjs run-multiple ${BROWSER_GROUP:-'--all'} -c test/end-to-end/saucelabs.conf.js --plugins retryFailedStep --steps --grep @e2e --reporter mocha-multi",
"test:smoke": "NODE_ENV=testing mocha test/smoke/healthcheck.js --timeout 30000 --reporter spec",
"lint": "NODE_PATH=. eslint .",
"eslint": "NODE_PATH=. eslint .",
"eslint-dev:all": "NODE_PATH=. eslint . -c .eslintrc-dev.js",
"eslint-dev:file": "NODE_PATH=. eslint -c .eslintrc-dev.js",
"test:functional": "NODE_ENV=testing ./bin/run-functional-tests.sh",
"test:fullfunctional": "NODE_ENV=testing ./bin/run-nightly-functional-tests.sh",
"test:nightly": "yarn playwright install && NODE_ENV=testing NODE_PATH=. node ./node_modules/codeceptjs/bin/codecept.js run-multiple parallel -c ./test/end-to-end/ --grep @nightly --steps --reporter mocha-multi",
"test:coverage": "NODE_ENV=test NODE_PATH=. nyc --reporter=lcov mocha './test/unit/**/test*.js' './test/component/**/test*.js' --timeout 10000 --recursive --exit",
"test-pact": "NODE_ENV=test NODE_PATH=. LOG_LEVEL=error mocha 'test/contract/pact/external/*.js' --timeout 10000 --reporter spec",
"publish-pact": "NODE_ENV=test NODE_PATH=. LOG_LEVEL=error mocha 'test/contract/publish/*.js' --timeout 10000 --reporter spec",
"test:pact:run-and-publish": "yarn test-pact && yarn publish-pact",
"test:crossbrowser": "./bin/run-crossbrowser-tests.sh",
"sonar-scan-comment": "cookies has been excluded by -Dcpd.exclusions - it is covered by both unit and component test yet reports incorrectly as not covered",
"sonar-scanner": "node_modules/sonar-scanner/bin/sonar-scanner",
"sonar-scan": "node_modules/sonar-scanner/bin/sonar-scanner -Dsonar.projectName='probate-caveats-frontend' -Dsonar.sources=app -Dsonar.cpd.exclusions=app/utils/FeatureToggle.js,app/utils/FormatName.js,app/core/runners/ActionStepRunner.js,app/**/template.html,app/**/scripts.html -Dsonar.exclusions=app/assets/**,app/**/scripts.html,app/steps/ui/static/cookies/index.js,app/steps/ui/equality/createToken.js -Dsonar.language=js -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info",
"git-info": "node-git-info-json",
"//": "The below scripts are just stubs, don't use them in production",
"stub:orchestrator": "NODE_PATH=. node test/service-stubs/orchestrator.js",
"stub:s2s": "NODE_PATH=. node test/service-stubs/s2s.js",
"stub:idam": "NODE_PATH=. node test/service-stubs/idam.js",
"stub:equality-and-diversity-endpoint": "NODE_PATH=. node test/service-stubs/equalityAndDiversityEndpoint.js",
"fortifyScan": "./test/java/gradlew -p test/java fortifyScan",
"stub:equality-and-diversity-health": "NODE_PATH=. node test/service-stubs/equalityAndDiversityHealth.js"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@hmcts/nodejs-healthcheck": "^1.8.0",
"@hmcts/nodejs-logging": "^4.0.4",
"@hmcts/os-places-client": "^1.1.7",
"@hmcts/properties-volume": "^1.0.0",
"ajv": "^6.12.6",
"applicationinsights": "^3.0.0",
"body-parser": "^1.19.0",
"cheerio": "^1.0.0-rc.9",
"co": "^4.6.0",
"connect-redis": "^7.0.0",
"cookie-parser": "^1.4.6",
"csurf": "^1.11.0",
"dateformat": "^3.0.3",
"debug": "^4.3.4",
"email-validator": "^2.0.4",
"express": "^4.21.0",
"express-session": "^1.18.0",
"express-urlrewrite": "^2.0.2",
"file-type": "^19.0.0",
"get-port": "^7.0.0",
"govuk-frontend": "^4.8.0",
"helmet": "^3.23.3",
"https-proxy-agent": "^7.0.0",
"i18next": "^24.0.0",
"if-env": "^1.0.4",
"ioredis": "^5.0.0",
"js-yaml": "^4.0.0",
"launchdarkly-node-server-sdk": "^7.0.0",
"lodash": "^4.17.21",
"mocha-lcov-reporter": "^1.3.0",
"multer": "1.4.5-lts.1",
"node-fetch": "^2.6.11",
"node-git-info-json": "^0.1.1",
"numeral": "^2.0.6",
"nunjucks": "^3.2.4",
"nyc": "^17.0.0",
"otp": "^0.1.3",
"randomstring": "^1.1.5",
"request": "^2.88.2",
"require-directory": "^2.1.1",
"serve-favicon": "^2.5.0",
"uuid": "^11.0.0",
"validator": "^13.7.0"
},
"devDependencies": {
"@pact-foundation/pact": "^13.0.0",
"@pact-foundation/pact-node": "^10.18.0",
"@playwright/test": "^1.41.2",
"@types/node": "^22.0.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chai-http": "^4.3.0",
"codeceptjs": "^3.4.1",
"codecov": "^4.0.0-0",
"config": "^3.3.9",
"eslint": "^8.35.0",
"eslint-plugin-mocha": "^10.0.0",
"git-rev-sync": "^3.0.0",
"mocha": "^11.0.0",
"mocha-jenkins-reporter": "^0.4.8",
"mocha-junit-reporter": "^2.0.0",
"mocha-multi": "^1.1.7",
"mochawesome": "^7.1.3",
"nock": "^13.0.0",
"node-sass": "^9.0.0",
"nodemon": "^3.0.0",
"pa11y": "^8.0.0",
"phantomjs-prebuilt": "^2.1.16",
"pre-commit": "^1.2.2",
"proxyquire": "^2.1.3",
"rewire": "^7.0.0",
"selenium-standalone": "^10.0.0",
"sinon": "^19.0.0",
"sinon-chai": "^3.3.0",
"sonar-scanner": "^3.1.0",
"sonarqube-scanner": "^4.0.0",
"superagent": "^10.0.0",
"supertest": "^7.0.0",
"watch": "^1.0.2",
"webdriverio": "^8.10.5",
"when": "^3.7.8"
},
"resolutions": {
"minimist": "^1.2.6",
"async": ">=2.6.4",
"cookie": "^1.0.0",
"cookiejar": ">=2.1.4",
"qs": ">=6.9.7",
"@babel/traverse": "^7.23.2",
"semver": "^7.5.4",
"tough-cookie": "^5.0.0",
"express": "^4.21.0",
"puppeteer": "^23.0.0",
"formidable": "3.5.2",
"import-in-the-middle": "^1.11.2",
"cross-spawn": "^7.0.5"
},
"packageManager": "[email protected]"
}