-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
203 lines (203 loc) · 6.99 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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
{
"name": "hmpps-interventions-ui",
"version": "0.0.1",
"description": "HMPPS Interventions UI",
"repository": "[email protected]:ministryofjustice/hmpps-interventions-ui.git",
"license": "MIT",
"scripts": {
"build:views": "cp -R server/views dist/server/",
"build:sass": "sass --no-source-map --quiet-deps --load-path=. --load-path=node_modules/govuk-frontend --load-path=node_modules/@ministryofjustice/frontend ./assets/sass/application.sass:./assets/stylesheets/application.css ./assets/sass/application-ie8.sass:./assets/stylesheets/application-ie8.css --style compressed",
"build:typecheck": "tsc",
"build:typecheck:prod": "tsc --build tsconfig.prod.json",
"build:typecheck:browser": "cd browser && tsc",
"build:prod": "npm run build:sass && npm run build:typecheck:prod && npm run build:views && npm run build:typecheck:browser",
"build": "npm run build:sass && npm run build:typecheck && npm run build:views && npm run build:typecheck:browser",
"watch:ts:server": "tsc -w",
"watch:ts:browser": "cd browser && tsc -w",
"watch:views": "nodemon --watch server/views -e html,njk -x npm run build:views",
"watch:sass": "npm run build:sass -- --watch",
"watch:node": "nodemon --watch dist/ --async-stack-traces --inspect dist/server.js | bunyan -o short",
"watch": "concurrently -k -p \"[{name}]\" -n \"Views,TypeScript (server),TypeScript (browser),Node,Sass\" -c \"yellow.bold,cyan.bold,magenta.bold,green.bold,blue.bold\" \"npm run watch:views\" \"npm run watch:ts:server\" \"npm run watch:ts:browser\" \"npm run watch:node\" \"npm run watch:sass\"",
"scripts:typecheck": "cd script && tsc",
"start": "node $NODE_OPTIONS $INTERVENTIONS_SERVER_NODE_OPTIONS dist/server.js",
"start:dev": "npm run build && NODE_ENV=development npm run watch",
"start:test": "export $(cat test.env) && npm run start",
"test": "jest --runInBand",
"test-debug": "npm test --watch -t",
"int-test": "cypress run --config video=false",
"int-test-ui": "cypress open",
"int-test-video": "CYPRESS_NO_COMMAND_LOG=1 cypress run --config video=true,slowTestThreshold=15000 --env CYPRESS_COMMAND_DELAY=1200",
"record-build-info": "node ./bin/record-build-info",
"security_audit": "npx audit-ci --config audit-ci.json",
"lint": "eslint . --cache --max-warnings 0 && stylelint **/*.scss",
"clean": "rm -rf dist build node_modules stylesheets browser/build",
"generate-frontend-types": "ts-node script/generateGovukFrontendTypes/runner.ts && prettier --write server/utils/govukFrontendTypes.ts",
"prepare": "husky install"
},
"engines": {
"node": "^20",
"npm": "^10"
},
"jest": {
"preset": "ts-jest",
"collectCoverageFrom": [
"server/**/*.{ts,js,jsx,mjs}"
],
"testMatch": [
"<rootDir>/(server|job)/**/?(*.)(spec|test).{ts,js,jsx,mjs}"
],
"testEnvironment": "node",
"forceExit": true,
"reporters": [
"default",
[
"jest-junit",
{
"outputDirectory": "test_results/jest/"
}
],
[
"./node_modules/jest-html-reporter",
{
"outputPath": "test_results/unit-test-reports.html"
}
]
],
"moduleFileExtensions": [
"web.js",
"js",
"json",
"node",
"ts"
]
},
"nodemonConfig": {
"ignore": [
".circleci/*",
"migrations/*",
"node_modules/*",
"test/*",
"integration_tests/*"
],
"delay": 2500,
"ext": "js,json,html,njk"
},
"lint-staged": {
"*.{ts,js,css}": [
"prettier --write",
"eslint --fix --max-warnings 0"
],
"**/*.scss": [
"stylelint --fix"
],
"*.json": [
"prettier --write"
]
},
"dependencies": {
"@aws-sdk/client-s3": "^3.621.0",
"@aws-sdk/credential-providers": "^3.621.0",
"@aws-sdk/s3-request-presigner": "^3.621.0",
"@microsoft/applicationinsights-web": "^3.3.0",
"@ministryofjustice/frontend": "2.1.3",
"@sentry/node": "^7.118.0",
"@types/connect-flash": "0.0.40",
"@types/express-serve-static-core": "^4.19.5",
"@types/md5": "^2.3.5",
"@types/qs": "^6.9.15",
"@types/uuid": "^9.0.8",
"accessible-autocomplete": "^2.0.4",
"agentkeepalive": "^4.5.0",
"applicationinsights": "^2.9.5",
"body-parser": "^1.20.3",
"bunyan": "^1.8.15",
"compression": "^1.7.4",
"connect-flash": "^0.1.1",
"connect-redis": "^6.1.3",
"cookie-parser": "^1.4.6",
"csurf": "^1.11.0",
"csvtojson": "^2.0.10",
"date-fns": "^2.30.0",
"dotenv": "^16.4.5",
"express": "^4.21.2",
"express-request-id": "^1.4.1",
"express-session": "^1.18.0",
"express-validator": "^6.15.0",
"govuk-elements-sass": "^3.1.3",
"govuk-frontend": "^4.9.0",
"helmet": "^7.1.0",
"http-errors": "^2.0.0",
"http-status-codes": "^2.3.0",
"indefinite": "^2.5.1",
"joi": "^17.13.3",
"jquery": "^3.7.1",
"jwt-decode": "^3.1.2",
"md5": "^2.3.0",
"moment-timezone": "^0.5.45",
"nocache": "^4.0.0",
"nunjucks": "^3.2.4",
"passport": "^0.7.0",
"passport-oauth2": "^1.8.0",
"redis": "^4.7.0",
"superagent": "^9.0.2",
"timezone-support": "^3.1.0",
"uuid": "^9.0.1"
},
"devDependencies": {
"@pact-foundation/pact": "^9.18.1",
"@types/bunyan": "^1.8.11",
"@types/bunyan-format": "^0.2.9",
"@types/compression": "^1.7.5",
"@types/cookie-parser": "^1.4.7",
"@types/cookie-session": "^2.0.49",
"@types/csurf": "^1.11.5",
"@types/express-request-id": "^1.4.3",
"@types/express-session": "^1.18.0",
"@types/http-errors": "^2.0.4",
"@types/indefinite": "^2.3.4",
"@types/jest": "^27.5.2",
"@types/jquery": "^3.5.30",
"@types/jsonwebtoken": "^9.0.6",
"@types/jwt-decode": "^2.2.1",
"@types/nunjucks": "^3.2.6",
"@types/passport": "^1.0.16",
"@types/passport-oauth2": "^1.4.17",
"@types/superagent": "^4.1.24",
"@types/supertest": "^2.0.16",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"concurrently": "^8.2.2",
"cookie-session": "^2.1.0",
"cypress": "^13.13.1",
"cypress-multi-reporters": "^1.6.4",
"cypress-slow-down": "^1.3.1",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-cypress": "^2.15.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.2.1",
"fishery": "^2.2.2",
"husky": "^8.0.3",
"jest": "^27.5.1",
"jest-html-reporter": "^3.10.2",
"jest-junit": "^16.0.0",
"jest-pact": "^0.9.4",
"jsonwebtoken": "^9.0.2",
"lint-staged": "^15.2.7",
"mocha": "^10.7.0",
"mocha-junit-reporter": "^2.2.1",
"mockdate": "^3.0.5",
"nock": "^13.5.4",
"nodemon": "^3.1.4",
"prettier": "^3.3.3",
"sass": "^1.77.8",
"stylelint": "^15.11.0",
"stylelint-config-sass-guidelines": "^10.0.0",
"supertest": "^6.3.4",
"ts-jest": "^27.1.5",
"ts-node": "^10.9.2",
"typescript": "^4.9.5"
}
}