-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
110 lines (110 loc) · 3.62 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
{
"name": "prepare-a-case",
"version": "1.0.0",
"description": "A service to allow probation staff to prepare court cases",
"author": "MoJ D&T Probation in Court <probation-in-court-team@digital.justice.gov.uk>",
"license": "MIT",
"private": true,
"repository": {
"type": "git",
"url": "https://github.com/ministryofjustice/prepare-a-case.git"
},
"scripts": {
"start": "docker compose up",
"start:detached": "npm run start -- --wait -d",
"stop": "docker compose down",
"build": "docker compose pull && docker compose build",
"test": "npm run test:lint && npm run test:unit && npm run test:pact && npm run test:int",
"test:lint": "docker exec -it prepare-a-case-app /usr/src/app/node_modules/.bin/standard",
"test:lint:fix": "npm run test:lint -- --fix",
"test:unit": "docker exec -it -e ENABLE_HEARING_OUTCOMES=false prepare-a-case-app /usr/src/app/node_modules/.bin/jest --config=./tests/jest.config.js --detectOpenHandles --ci --forceExit",
"test:pact": "docker exec -it prepare-a-case-app /usr/src/app/node_modules/.bin/jest --config=./tests/jest.pact.config.js --detectOpenHandles --ci --forceExit",
"test:int": "DISPLAY= docker compose -f compose/docker-compose.cypress-run.yml up --abort-on-container-exit",
"test:int:ui": "/usr/X11/bin/xhost + 127.0.0.1 && DISPLAY=host.docker.internal:0 docker compose -f compose/docker-compose.cypress-ui.yml up --abort-on-container-exit"
},
"config": {
"pact_do_not_track": true
},
"nodemonConfig": {
"ignore": [
"public/**/*.min.*",
"tests/*",
"coverage/*",
"integration-tests/*"
],
"delay": 1000,
"ext": "js,html,njk,scss"
},
"standard": {
"ignore": [
"/bin",
"/public/**/*.js",
"/integration-tests",
"/hmpps-user-preferences"
]
},
"jest-junit": {
"suiteName": "jest tests",
"outputDirectory": "./test-results/jest",
"outputName": "results.xml",
"uniqueOutputName": false,
"classNameTemplate": "{classname}-{title}",
"titleTemplate": "{classname}-{title}",
"ancestorSeparator": " › ",
"usePathForSuiteName": true
},
"dependencies": {
"@microsoft/applicationinsights-clickanalytics-js": "^3.3.2",
"@microsoft/applicationinsights-web": "^3.3.2",
"@ministryofjustice/frontend": "^2.1.0",
"@splidejs/splide": "^4.1.4",
"accessible-autocomplete": "^3.0.1",
"agentkeepalive": "^4.2.1",
"applicationinsights": "2.9.2",
"applicationinsights-native-metrics": "0.0.10",
"axios": "1.1.0",
"axios-middleware": "0.4.0",
"bootstrap": "^5.3.2",
"bunyan": "1.8.15",
"bunyan-format": "0.2.1",
"compression": "1.7.4",
"connect-redis": "6.1.3",
"cookie-parser": "1.4.7",
"cookie-session": "2.0.0",
"debug": "4.3.4",
"dotenv": "16.0.0",
"express": "4.21.2",
"express-http-proxy": "^2.0.0",
"express-session": "1.18.1",
"express-validator": "6.14.0",
"govuk-frontend": "^5.1.0",
"helmet": "4.6.0",
"jsonwebtoken": "9.0.0",
"jwt-decode": "3.1.2",
"moment": "2.29.4",
"nunjucks": "^3.2.4",
"passport": "^0.7.0",
"passport-oauth2": "^1.7.0",
"redis": "3.1.2",
"superagent": "7.1.3"
},
"devDependencies": {
"@pact-foundation/pact": "^12.1.2",
"ajv": "8.11.0",
"ajv-errors": "3.0.0",
"jest": "^29.7.0",
"jest-junit": "13.2.0",
"jest-pact": "^0.11.0",
"jquery": "^3.7.1",
"mockdate": "3.0.5",
"moxios": "0.4.0",
"nock": "^13.2.4",
"nodemon": "^3.0.2",
"sass": "^1.69.7",
"standard": "17.0.0",
"supertest": "6.2.2",
"terser": "^5.26.0",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
}
}