-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpackage.json
More file actions
164 lines (164 loc) · 7.16 KB
/
package.json
File metadata and controls
164 lines (164 loc) · 7.16 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
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
{
"name": "di-auth",
"version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"type": "module",
"packageManager": "npm@11.12.1",
"engines": {
"node": "24.15.x",
"npm": ">=10.0.0",
"yarn": "Please use npm"
},
"scripts": {
"build-ts": "tsc",
"build": "npm run build-sass && npm run build-ts && npm run minfiy-build-js && npm run copy-assets",
"build-sass": "rm -rf dist/public/style.css && sass --load-path=node_modules/govuk-frontend/dist/govuk --no-source-map --quiet-deps src/assets/scss/application.scss dist/public/style.css --style compressed",
"clean": "rm -rf dist node_modules logs.json",
"clean-modules": "rm -rf node_modules",
"copy-assets": "mkdir -p dist/public/scripts dist/config && find src -name '*.njk' -exec sh -c 'mkdir -p dist/$(dirname ${1#src/}) && cp $1 dist/${1#src/}' _ {} \\; && cp -r src/locales dist/ && (cp src/config/*.txt dist/config/ 2>/dev/null || true) && cp src/assets/javascript/*.js dist/public/scripts && cp node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js dist/public/scripts && cp node_modules/@govuk-one-login/frontend-analytics/lib/analytics.js dist/public/scripts && cp node_modules/@govuk-one-login/spinner/spinner-app.js dist/public/scripts && cp node_modules/@govuk-one-login/frontend-device-intelligence/build/esm/index.js dist/public/scripts/device-intelligence.js && cp node_modules/@simplewebauthn/browser/dist/bundle/index.umd.min.js dist/public/scripts/simplewebauthn-browser.min.js",
"dev": "npm run build-ts && concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node,Journey Map\" -c \"yellow.bold,cyan.bold,green.bold,magenta.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\" \"npm run build-watch --prefix journey-map/\"",
"dummy-server-orchstub": "node dev-app-orchstub.js | pino-pretty",
"depcheck": "depcheck",
"lint": "eslint . ",
"minfiy-build-js": "uglifyjs src/assets/javascript/application.js -o src/assets/javascript/application.js -c -m && uglifyjs src/assets/javascript/dataLayerEvents.js -o src/assets/javascript/dataLayerEvents.js -c -m && uglifyjs src/assets/javascript/prevent-double-form-submit.js -o src/assets/javascript/prevent-double-form-submit.js -c -m ",
"pretty": "prettier --write \"*/**/*.{ts,json}\"",
"check-pretty": "prettier --check \"*/**/*.{ts,json}\"",
"start": "node dist/server.js",
"test:audit": "npm audit",
"test:integration": "rm -rf test/coverage && NODE_ENV=development c8 mocha -r dotenv/config \"src/**/*-integration.test.ts\"",
"test:integration-no-clear-cov": "NODE_ENV=development c8 --no-clean mocha -r dotenv/config \"src/**/*-integration.test.ts\"",
"test:integration-nocov": "NODE_ENV=development mocha -r dotenv/config \"src/**/*-integration.test.ts\"",
"test:unit": "rm -rf test/coverage && NODE_ENV=development c8 mocha --exclude \"src/**/*-integration.test.ts\" --exclude \"src/**/*-snapshot.test.ts\" \"test/unit/**/*.test.ts\" --recursive \"src/**/*.test.ts\"",
"test:unit-nocov": "NODE_ENV=development mocha --exclude \"src/**/*-integration.test.ts\" \"test/unit/**/*.test.ts\" --recursive \"src/**/*.test.ts\"",
"test:u1": "rm -rf test/coverage && NODE_ENV=development c8 mocha --exclude \"src/**/*-integration.test.ts\" --recursive \"src/**/your-test*.test.ts\"",
"test": "rm -rf test/coverage && NODE_ENV=development c8 mocha -r dotenv/config \"test/unit/**/*.test.ts\" --recursive \"src/**/*.test.ts\"",
"test:coverage": "c8 report --reporter=lcov --reporter=text",
"test:dev-evironment-variables": "mocha dev-check-environment.js",
"watch-node": "nodemon -r dotenv/config --inspect=0.0.0.0:9230 dist/server.js | pino-pretty",
"watch-ts": "tsc -w",
"watch-sass": "sass --load-path=node_modules/govuk-frontend/dist/govuk --watch --quiet-deps src/assets/scss/application.scss dist/public/style.css",
"dev:render-user-journey-documentation": "node --loader ts-node/esm ./scripts/render-user-journey-documentation.ts"
},
"mocha": {
"diff": true,
"extension": [
"js",
"ts"
],
"timeout": 20000,
"recursive": true,
"require": [
"tsx"
],
"exit": true
},
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"semi": true
},
"dependencies": {
"@aws-sdk/client-kms": "3.1038.0",
"@aws-sdk/client-ssm": "3.1038.0",
"@govuk-one-login/frontend-analytics": "4.0.5",
"@govuk-one-login/frontend-device-intelligence": "1.2.0",
"@govuk-one-login/frontend-language-toggle": "2.2.2",
"@govuk-one-login/frontend-passthrough-headers": "1.3.2",
"@govuk-one-login/frontend-vital-signs": "0.1.4",
"@govuk-one-login/spinner": "1.1.1",
"@otplib/core": "13.4.0",
"@otplib/plugin-base32-enc-dec": "12.0.1",
"@simplewebauthn/browser": "13.3.0",
"axios": "1.15.2",
"connect-redis": "9.0.0",
"cookie-parser": "1.4.7",
"csrf-sync": "4.2.1",
"dompurify": "3.4.1",
"express": "5.2.1",
"express-session": "1.19.0",
"express-validator": "7.3.2",
"govuk-frontend": "5.11.2",
"helmet": "8.1.0",
"i18next": "26.0.8",
"i18next-fs-backend": "2.6.5",
"i18next-http-middleware": "3.9.6",
"jose": "6.2.3",
"jsdom": "26.1.0",
"libphonenumber-js": "1.12.42",
"nunjucks": "3.2.4",
"overload-protection": "1.2.3",
"pino": "10.3.1",
"pino-http": "11.0.0",
"qrcode": "1.5.4",
"redis": "5.12.1",
"uglify-js": "3.19.3",
"uid-safe": "2.1.5",
"xss": "1.0.15",
"xstate": "4.26.1"
},
"devDependencies": {
"@axe-core/playwright": "4.11.1",
"@eslint/eslintrc": "3.3.5",
"@eslint/js": "9.39.4",
"@playwright/test": "1.59.1",
"@types/chai": "5.2.3",
"@types/cheerio": "0.22.35",
"@types/cookie-parser": "1.4.10",
"@types/express": "5.0.6",
"@types/express-session": "1.19.0",
"@types/i18next-fs-backend": "1.2.0",
"@types/jsdom": "21.1.7",
"@types/mocha": "10.0.10",
"@types/mock-req-res": "1.1.6",
"@types/node": "24.12.3",
"@types/nunjucks": "3.2.6",
"@types/otplib": "10.0.0",
"@types/overload-protection": "1.2.4",
"@types/qrcode": "1.5.6",
"@types/sinon": "21.0.1",
"@types/sinon-chai": "4.0.0",
"@types/supertest": "7.2.0",
"@types/uid-safe": "2.1.5",
"@typescript-eslint/eslint-plugin": "8.55.0",
"@typescript-eslint/parser": "8.55.0",
"c8": "11.0.0",
"chai": "6.2.2",
"cheerio": "1.0.0",
"concurrently": "9.2.1",
"dotenv": "17.4.1",
"eslint": "9.39.2",
"eslint-plugin-no-only-tests": "3.3.0",
"esmock": "2.7.3",
"globals": "17.5.0",
"mocha": "11.7.5",
"mock-req-res": "1.2.1",
"nock": "15.0.0",
"nodemon": "3.1.11",
"pino-pretty": "13.0.0",
"prettier": "3.8.1",
"sass": "1.99.0",
"sinon": "21.1.2",
"sinon-chai": "4.0.1",
"supertest": "7.2.2",
"ts-node": "10.9.2",
"tsx": "4.21.0",
"typescript": "5.8.3",
"uglify-js": "3.19.3"
},
"overrides": {
"js-yaml": "4.1.1",
"validator": "13.15.23",
"serialize-javascript": ">=7.0.3",
"fast-xml-parser": ">=5.5.6"
},
"resolutions": {
"minimist": "1.2.6",
"formidable": ">=3.5.3",
"brace-expansion": "1.1.12"
},
"optionalDependencies": {
"@esbuild/linux-x64": "0.27.0"
}
}