-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
150 lines (150 loc) · 6.17 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
{
"name": "protected-characteristics-frontend",
"description": "Protected Characteristics web app",
"version": "1.2.202",
"license": "MIT",
"engines": {
"node": ">=14.18.1"
},
"scripts": {
"preinstall": "./bin/preinstall.sh || true",
"setup": "sh ./bin/setup.sh",
"createVersionFile": "NODE_PATH=. node setup/createVersionFile.js",
"copyGovUkResources": "NODE_PATH=. node setup/copyGovukResources.js",
"bundle": "NODE_PATH=. yarn webpack",
"start": "NODE_PATH=. node server.js",
"debug": "NODE_PATH=. node inspect server.js",
"start:dev": "npm run sass:watch && NODE_ENV=dev NODE_PATH=. nodemon -e js,json --watch 'app/' --watch 'test/' -x 'node server.js'",
"sass:watch": "NODE_PATH=. watch 'npm run -s sass' app/assets/sass/ &",
"sass": "NODE_PATH=. sass --load-path=public app/assets/sass/application.scss:public/stylesheets/application.css --quiet --style expanded --source-map",
"sass-ie8": "NODE_PATH=. sass --load-path=public app/assets/sass/application-ie8.scss:public/stylesheets/application.css --quiet --style expanded --source-map",
"test:all": "NODE_ENV=testing npm run test -- $@ && npm run test:mutation -- $@ && npm run test:component -- $@ && npm run test:smoke -- $@ && npm run test:functional -- $@ && npm run test:a11y -- $@ ",
"test": "npm run test:unit -- $@ && npm run test:component -- $@",
"test:unit": "NODE_ENV=testing ALLOW_CONFIG_MUTATIONS=true NODE_PATH=. LOG_LEVEL=error nyc mocha test/unit --reporter spec --recursive --timeout 10000",
"test:component": "NODE_ENV=testing ALLOW_CONFIG_MUTATIONS=true NODE_PATH=. LOG_LEVEL=error mocha test/component --reporter spec --recursive --timeout 10000",
"test:a11y": "NODE_ENV=testing NODE_PATH=. ALLOW_CONFIG_MUTATIONS=true LOG_LEVEL=error ENABLE_TRACKING=false mocha test/accessibility --timeout 30000 --exit",
"test:e2e": "NODE_ENV=testing NODE_PATH=. ALLOW_CONFIG_MUTATIONS=true yarn codeceptjs run -c ./test/end-to-end/",
"test:functional": "./bin/run-functional-tests.sh",
"test:crossbrowser": "./bin/run-crossbrowser-tests.sh",
"test:smoke": "./bin/run-smoke-tests.sh",
"lint": "NODE_PATH=. eslint .",
"test:codecov-upload": "NODE_ENV=test NODE_PATH=. nyc --cache false _mocha './test/**/test*.js' -- -R spec && codecov",
"test:coverage": "NODE_ENV=testing ALLOW_CONFIG_MUTATIONS=true NODE_PATH=. nyc --cache false _mocha './test/**/test*.js'",
"test:mutation": "npm run createVersionFile && NODE_ENV=testing ALLOW_CONFIG_MUTATIONS=true NODE_PATH=. stryker run test/mutation/stryker.conf.js",
"test-crossbrowser-e2e": "NODE_ENV=testing ALLOW_CONFIG_MUTATIONS=true LOG_LEVEL=OFF NODE_PATH=. yarn codeceptjs run-multiple ${BROWSER_GROUP:-'--all'} -c test/end-to-end/saucelabs.conf.js",
"test:crossbrowser_chrome": "NODE_PATH=. ALLOW_CONFIG_MUTATIONS=true codeceptjs run-multiple chrome -c test/end-to-end/saucelabs.conf.js",
"test:crossbrowser_safari": "NODE_PATH=. ALLOW_CONFIG_MUTATIONS=true codeceptjs run-multiple safari -c test/end-to-end/saucelabs.conf.js",
"test:fullfunctional": "./bin/run-full-functional-tests.sh",
"fortifyScan": "./test/java/gradlew -p test/java fortifyScan",
"sonar-scan": "sonar-scanner",
"git-info": "node-git-info-json",
"yarn-audit-fix": "yarn-audit-fix",
"//": "The below scripts are just stubs, don't use them in production",
"stub:pcq-backend": "NODE_PATH=. node test/service-stubs/pcq-backend.js",
"stub:feature-toggles": "NODE_PATH=. node test/service-stubs/feature-toggles.js"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@hmcts/cookie-manager": "^1.0.0",
"@hmcts/nodejs-healthcheck": "^1.7.3",
"@hmcts/nodejs-logging": "^4.0.4",
"@hmcts/properties-volume": "^1.0.0",
"ajv": "^6.12.6",
"app": "link:./app",
"applicationinsights": "^3.2.1",
"body-parser": "^1.20.3",
"co": "^4.6.0",
"compression": "^1.7.4",
"config": "^3.3.11",
"connect-redis": "^5.2.0",
"cookie-parser": "^1.4.4",
"csrf-sync": "^4.0.3",
"express": "^4.20.0",
"express-session": "^1.16.2",
"express-urlrewrite": "^2.0.1",
"git-rev-sync": "^3.0.2",
"govuk-frontend": "^5.4.0",
"helmet": "^3.23.3",
"https-proxy-agent": "^5.0.1",
"i18next": "^24.0.0",
"ioredis": "^5.3.2",
"js-yaml": "^4.1.0",
"jsonwebtoken": "^9.0.2",
"launchdarkly-node-server-sdk": "^7.0.3",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"node-emoji": "^2.1.0",
"node-fetch": "^2.6.9",
"nunjucks": "^3.2.4",
"require-directory": "^2.1.1",
"sanitizer": "^0.1.3",
"sass": "^1.80.3",
"serve-favicon": "^2.5.0",
"test": "link:./test",
"traverse": "^0.6.6",
"uuid": "^11.0.0",
"webpack": "^5.95.0",
"webpack-cli": "^5.1.1"
},
"devDependencies": {
"@babel/traverse": "^7.22.5",
"@babel/types": "^7.22.4",
"@eslint/js": "^9.4.0",
"@parcel/watcher": "^2.4.1",
"@stryker-mutator/api": "^8.5.0",
"@stryker-mutator/core": "^8.5.0",
"@stryker-mutator/mocha-runner": "8.7.1",
"chai": "^4.2.0",
"chokidar": "^4.0.1",
"codeceptjs": "^3.6.6",
"codecov": "^4.0.0-0",
"debug": "^4.3.4",
"eslint": "^9.4.0",
"esmify": "^2.1.1",
"fs-extra": "^11.1.0",
"globals": "^15.4.0",
"immutable": "5.0.3",
"mocha": "^10.7.0",
"mochawesome": "^7.1.3",
"nock": "^13.3.0",
"nodemon": "^3.1.0",
"nyc": "^17.0.0",
"pa11y": "^8.0.0",
"permissions-policy": "^0.6.0",
"playwright": "^1.43.1",
"pre-commit": "^1.2.2",
"proxyquire": "^2.1.3",
"react-native": "^0.76.0",
"rewire": "^7.0.0",
"sinon": "^19.0.0",
"sinon-chai": "^3.4.0",
"sonarqube-scanner": "^4.0.0",
"supertest": "^7.0.0",
"tslib": "^2.6.0",
"undici": "^6.19.8",
"watch": "^1.0.2",
"webdriverio": "^8.21.0",
"yarn-audit-fix": "^10.0.3"
},
"resolutions": {
"formidable": "^3.2.4",
"json5": "2.2.3",
"send": "0.19.1",
"cookie": "1.0.2",
"merge": "2.1.1",
"ws": "8.18.0",
"import-in-the-middle": "1.12.0",
"cross-spawn": "7.0.6"
},
"nyc": {
"report-dir": "functional-output/coverage",
"temp-directory": "./coverage",
"reporter": [
"lcov",
"text"
]
},
"packageManager": "[email protected]"
}