-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
121 lines (121 loc) · 4.83 KB
/
package.json
File metadata and controls
121 lines (121 loc) · 4.83 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
{
"name": "send-legal-mail-to-prisons",
"version": "0.0.1",
"description": "Send Legal Mail To Prisons",
"repository": "git@github.com:ministryofjustice/send-legal-mail-to-prisons.git",
"license": "MIT",
"scripts": {
"prepare": "husky",
"copy-views": "cp -R server/views dist/server/",
"compile-sass": "sass --quiet-deps --no-source-map --load-path=node_modules/govuk-frontend/dist --load-path=node_modules/@ministryofjustice/frontend --load-path=. assets/sass/application.sass:./assets/stylesheets/application.css --style compressed",
"watch-ts": "tsc -w",
"watch-views": "nodemon --watch server/views -e html,njk -x npm run copy-views",
"watch-node": "DEBUG=gov-starter-server* nodemon --watch dist/ dist/server.js | bunyan -o short",
"watch-sass": "npm run compile-sass -- --watch",
"build": "npm run compile-sass && tsc && npm run copy-views",
"start": "node $NODE_OPTIONS dist/server.js | bunyan -o short",
"start:dev": "npm run build && concurrently -k -p \"[{name}]\" -n \"Views,TypeScript,Node,Sass\" -c \"yellow.bold,cyan.bold,green.bold,blue.bold\" \"npm run watch-views\" \"npm run watch-ts\" \"npm run watch-node\" \"npm run watch-sass\"",
"start-feature": "export $(cat feature.env) && node $NODE_DEBUG_OPTION dist/server.js | bunyan -o short",
"watch-node-feature": "export $(cat feature.env) && nodemon --watch dist/ $NODE_DEBUG_OPTION dist/server.js | bunyan -o short",
"start-feature:dev": "npm run build && concurrently -k -p \"[{name}]\" -n \"Views,TypeScript,Node,Sass\" -c \"yellow.bold,cyan.bold,green.bold,blue.bold\" \"npm run watch-views\" \"npm run watch-ts\" \"npm run watch-node-feature\" \"npm run watch-sass\"",
"lint": "eslint . --cache --no-warn-ignored --max-warnings 0",
"lint-fix": "eslint . --no-warn-ignored --fix",
"typecheck": "tsc && tsc -p integration_tests && tsc -p smoke_tests",
"test": "jest",
"test:ci": "jest --runInBand",
"security_audit": "npx audit-ci --config audit-ci.json",
"int-test": "cypress run --config video=false --env $(grep ONE_TIME_CODE_AUTH_ENABLED feature.env)",
"int-test-ui": "cypress open --env $(grep ONE_TIME_CODE_AUTH_ENABLED feature.env)",
"clean-build": "rm -rf dist build stylesheets",
"clean": "rm -rf dist build node_modules stylesheets",
"setup": "npm ci && hmpps-npm-script-run-allowlist"
},
"engines": {
"node": "^24",
"npm": "^11"
},
"dependencies": {
"@ministryofjustice/frontend": "^9.0.0",
"@ministryofjustice/hmpps-monitoring": "2.1.0",
"accessible-autocomplete": "^3.0.1",
"agentkeepalive": "^4.6.0",
"applicationinsights": "^2.9.8",
"bunyan": "^1.8.15",
"bunyan-format": "^0.2.1",
"bwip-js": "^4.11.1",
"canvas": "3.2.3",
"compression": "^1.8.1",
"connect-flash": "^0.1.1",
"connect-redis": "^9.0.0",
"cookie-parser": "^1.4.7",
"cookie-session": "^2.1.1",
"csrf-sync": "^4.2.1",
"dotenv": "^17.4.2",
"express": "^5.2.1",
"express-session": "^1.19.0",
"govuk-frontend": "^6.1.0",
"helmet": "^8.2.0",
"http-errors": "^2.0.1",
"jquery": "^4.0.0",
"jsonwebtoken": "^9.0.3",
"jwt-decode": "^4.0.0",
"moment": "^2.30.1",
"nocache": "^4.0.0",
"nunjucks": "^3.2.4",
"passport": "^0.7.0",
"passport-oauth2": "^1.8.0",
"redis": "^5.12.1",
"superagent": "10.3.0"
},
"devDependencies": {
"@ministryofjustice/eslint-config-hmpps": "^1.0.3",
"@ministryofjustice/hmpps-npm-script-allowlist": "0.0.6",
"@tsconfig/node24": "^24.0.4",
"@types/bunyan": "^1.8.11",
"@types/bunyan-format": "^0.2.9",
"@types/bwip-js": "3.2.3",
"@types/compression": "^1.8.1",
"@types/connect-flash": "0.0.40",
"@types/cookie-parser": "^1.4.10",
"@types/cookie-session": "^2.0.49",
"@types/express-session": "^1.19.0",
"@types/http-errors": "^2.0.5",
"@types/jest": "^30.0.0",
"@types/jsdom": "^28.0.3",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^24.12.4",
"@types/nunjucks": "^3.2.6",
"@types/passport": "^1.0.17",
"@types/passport-oauth2": "^1.8.0",
"@types/superagent": "^8.1.10",
"@types/supertest": "^7.2.0",
"audit-ci": "^7.1.0",
"axe-core": "^4.11.4",
"cheerio": "^1.2.0",
"concurrently": "^9.2.1",
"cypress": "^15.16.0",
"cypress-axe": "^1.7.0",
"cypress-multi-reporters": "^2.0.5",
"husky": "^9.1.7",
"jest": "^30.4.2",
"jest-environment-jsdom": "^30.4.1",
"jest-html-reporter": "^4.4.0",
"jest-junit": "^17.0.0",
"lint-staged": "^17.0.6",
"mocha-junit-reporter": "^2.2.1",
"nock": "^14.0.15",
"nodemon": "^3.1.14",
"prettier": "^3.8.3",
"redis-mock": "^0.56.3",
"sass": "1.100.0",
"supertest": "7.2.2",
"ts-jest": "^29.4.11",
"typescript": "^6.0.3"
},
"overrides": {
"mocha": {
"diff": "^8.0.4",
"serialize-javascript": "^7.0.5"
}
}
}