-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
137 lines (137 loc) · 6.68 KB
/
package.json
File metadata and controls
137 lines (137 loc) · 6.68 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
{
"name": "di-account-management-frontend",
"version": "1.0.0",
"description": "",
"author": "",
"license": "ISC",
"type": "module",
"scripts": {
"install-all": "npm ci && npm run install-submodules",
"install-submodules": "git submodule update --init --recursive",
"bubbleprof": "NODE_ENV=production clinic bubbleprof --autocannon [ -c 10 -d 10 /healthcheck ] -- node -r dotenv/config dist/server.js && echo '\n\nRemember to clean up files in .clinic and node_trace.*.log\n'",
"build-ts": "tsc",
"build-rp-registry": "cd node_modules/di-account-management-rp-registry && npm run build &> /dev/null || true",
"build": "npm run build-sass && npm run build-ts && npm run copy-assets && npm run generate-static-hash",
"build-dev": "npm run build-sass && npm run build-ts && npm run copy-assets && npm run generate-static-hash",
"build-sass": "rm -rf dist/public/style.css && sass --load-path=node_modules/govuk-frontend/dist/govuk --no-source-map 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",
"generate-static-hash": "mkdir -p dist/utils && tar cvf - src/assets | sha1sum | head -c 40 | xargs -I X echo '{\"hash\":\"X\"}' > dist/utils/static-hash.json",
"copy-assets": "copyfiles -u 1 src/**/*.njk dist/ src/locales/**/** dist/ src/config/*.txt dist/ && npm run copy-scripts",
"copy-scripts": "rm -r dist/public/scripts || true && mkdir -p dist/public/scripts && cp node_modules/govuk-frontend/dist/govuk/govuk-frontend.min.js node_modules/@govuk-one-login/frontend-analytics/lib/analytics.js node_modules/@govuk-one-login/frontend-analytics/lib/analytics.js node_modules/@simplewebauthn/browser/dist/bundle/index.es5.umd.min.js dist/public/scripts",
"doctor": "NODE_ENV=production clinic doctor --autocannon [ -c 10 -d 10 /healthcheck ] -- node -r dotenv/config dist/server.js && echo '\n\nRemember to clean up files in .clinic and node_trace.*.log\n'",
"deep-clean": "npm cache clear --force && npm cache clean --force && npm run clean && npm run install-all && npm run build",
"dev": "concurrently -k -p \"[{name}]\" -n \"Sass,TypeScript,Node\" -c \"yellow.bold,cyan.bold,green.bold\" \"npm run watch-sass\" \"npm run watch-ts\" \"npm run watch-node\"",
"dummy-server": "node dev-app.js",
"depcheck": "depcheck",
"flame": "NODE_ENV=production clinic flame --autocannon [ -c 10 -d 10 /healthcheck ] -- node -r dotenv/config dist/server.js && echo '\n\nRemember to clean up files in .clinic and node_trace.*.log\n'",
"heap-profiler": "NODE_ENV=production clinic flame --autocannon [ / --method GET -d 120 ] -- node -r dotenv/config dist/server.js && echo '\n\nRemember to clean up files in .clinic and node_trace.*.log\n'",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"start": "node dist/server.js",
"test:audit": "npm audit",
"test:integration-legacy": "vitest run --config vitest.config.ts --reporter=verbose --exclude 'src/**/!(tests)/*.test.ts' --exclude 'test/unit/**/*.test.ts'",
"test:unit": "vitest run --config vitest.config.ts --exclude \"src/**/tests/*-integration.test.ts\"",
"test": "vitest run --config vitest.config.ts",
"test:coverage": "vitest run --config vitest.config.ts --exclude \"src/**/tests/*-integration.test.ts\" --coverage",
"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 src/assets/scss/application.scss dist/public/style.css",
"precommit": "pre-commit run",
"audit": "npm audit --audit-level=moderate",
"link-registry": "rm -rf node_modules/di-account-management-rp-registry && ln -s ../../di-account-management-rp-registry node_modules/di-account-management-rp-registry"
},
"dependencies": {
"@aws-crypto/client-node": "^5.0.0",
"@aws-lambda-powertools/metrics": "^2.33.0",
"@aws-sdk/client-dynamodb": "^3.1046.0",
"@aws-sdk/client-kms": "^3.1046.0",
"@aws-sdk/client-sns": "^3.1046.0",
"@aws-sdk/client-sqs": "^3.1046.0",
"@aws-sdk/lib-dynamodb": "^3.1046.0",
"@aws-sdk/util-dynamodb": "^3.985.0",
"@govuk-one-login/frontend-analytics": "^4.0.8",
"@govuk-one-login/frontend-device-intelligence": "^1.2.0",
"@govuk-one-login/frontend-ui": "^4.2.3",
"@govuk-one-login/frontend-vital-signs": "0.1.4",
"@simplewebauthn/browser": "^13.3.0",
"axios": "^1.16.1",
"base64url": "3.0.1",
"body-parser": "^2.2.2",
"connect-dynamodb": "^3.0.5",
"cookie-parser": "^1.4.7",
"csrf-sync": "^4.2.1",
"di-account-management-rp-registry": "github:govuk-one-login/di-account-management-rp-registry#main",
"dompurify": "^3.4.3",
"express": "^5.2.1",
"express-session": "1.19.0",
"express-validator": "^7.3.2",
"flexsearch": "^0.8.212",
"govuk-frontend": "^5.14.0",
"helmet": "8.1.0",
"i18next": "^25.10.10",
"i18next-fs-backend": "^2.6.4",
"i18next-http-middleware": "^3.9.3",
"jose": "^5.10.0",
"jsdom": "^27.4.0",
"libphonenumber-js": "^1.13.1",
"nunjucks": "^3.2.4",
"obscenity": "^0.4.6",
"openid-client": "^5.7.1",
"otplib": "^13.4.0",
"overload-protection": "^1.2.3",
"pino": "^10.3.1",
"pino-http": "^11.0.0",
"prettier": "^3.8.3",
"qrcode": "^1.5.4",
"uuid": "^14.0.0",
"valibot": "^1.4.0",
"xss": "^1.0.15",
"xstate": "^5.31.1"
},
"devDependencies": {
"@eslint/js": "^9.39.3",
"@types/cookie-parser": "^1.4.10",
"@types/csurf": "^1.11.5",
"@types/express": "^5.0.6",
"@types/express-session": "^1.19.0",
"@types/jsdom": "^21.1.7",
"@types/node": "^22.19.19",
"@types/nunjucks": "^3.2.6",
"@types/overload-protection": "^1.2.4",
"@types/qrcode": "^1.5.6",
"@types/supertest": "^6.0.3",
"@typescript-eslint/eslint-plugin": "^8.59.3",
"@typescript-eslint/parser": "^8.59.3",
"@vitest/coverage-v8": "^4.1.6",
"cheerio": "^1.2.0",
"concurrently": "^9.2.1",
"copyfiles": "^2.4.1",
"dotenv": "^17.4.2",
"eslint": "^9.39.3",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.5",
"eslint-plugin-vitest": "^0.5.4",
"globals": "^16.5.0",
"nock": "^14.0.15",
"nodemon": "3.1.14",
"pino-pretty": "^13.1.3",
"sass": "^1.99.0",
"supertest": "^7.2.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"typescript-eslint": "^8.59.3",
"uglify-js": "^3.19.3",
"vitest": "^4.0.18"
},
"overrides": {
"uuid": "^14.0.0"
},
"resolutions": {
"minimist": "1.2.6",
"json5": "2.2.3"
},
"optionalDependencies": {
"@rollup/rollup-darwin-arm64": "^4.60.3"
}
}