Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 3.85 KB
/
Copy pathpackage.json
File metadata and controls
129 lines (129 loc) · 3.85 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
{
"name": "govuk-analytics-consent",
"version": "0.4.0",
"description": "Near zero-configuration GOV.UK cookie consent banner, Google Tag Manager loading and Google Consent Mode integration for Node.js services",
"license": "MIT",
"type": "module",
"workspaces": [
"packages/audit"
],
"repository": {
"type": "git",
"url": "git+https://github.com/TransformCore/govuk-analytics-consent.git"
},
"bugs": {
"url": "https://github.com/TransformCore/govuk-analytics-consent/issues"
},
"homepage": "https://github.com/TransformCore/govuk-analytics-consent#readme",
"publishConfig": {
"access": "public"
},
"engines": {
"node": ">=20"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./hapi": {
"types": "./dist/integrations/hapi.d.ts",
"import": "./dist/integrations/hapi.js"
},
"./express": {
"types": "./dist/integrations/express.d.ts",
"import": "./dist/integrations/express.js"
},
"./fastify": {
"types": "./dist/integrations/fastify.d.ts",
"import": "./dist/integrations/fastify.js"
},
"./nunjucks": {
"types": "./dist/ui/template-path.d.ts",
"import": "./dist/ui/template-path.js"
},
"./package.json": "./package.json"
},
"files": [
"dist",
"src/ui/templates"
],
"scripts": {
"audit": "npm run build:audit && node packages/audit/dist/cli.js",
"build": "npm run clean && npm run build:server && npm run build:client && npm run build:audit",
"clean": "node --input-type=module -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\"",
"build:audit": "npm run build --workspace govuk-analytics-consent-audit",
"build:server": "tsc -p tsconfig.build.json",
"build:client": "esbuild src/client/index.ts --bundle --format=iife --minify --target=es2017 --outfile=dist/client/consent.js",
"example:express": "npm run build && node examples/express/server.js",
"example:hapi": "npm run build && node examples/hapi/server.js",
"example:fastify": "npm run build && node examples/fastify/server.js",
"prepare": "npm run build",
"prepublishOnly": "npm run typecheck && npm test",
"typecheck": "tsc --noEmit && npm run typecheck --workspace govuk-analytics-consent-audit",
"pretest": "npm run build:client",
"test": "vitest run",
"test:watch": "vitest",
"test:e2e": "npm run build && playwright test"
},
"peerDependencies": {
"fastify": ">=5",
"fastify-plugin": ">=6",
"govuk-frontend": ">=4.0.0"
},
"peerDependenciesMeta": {
"fastify": {
"optional": true
},
"fastify-plugin": {
"optional": true
},
"govuk-frontend": {
"optional": true
}
},
"devDependencies": {
"@fastify/cookie": "^11.1.2",
"@fastify/csrf-protection": "^8.0.1",
"@fastify/helmet": "^13.1.1",
"@fastify/static": "^10.1.5",
"@fastify/view": "^12.0.0",
"@hapi/crumb": "^9.0.1",
"@hapi/hapi": "^21.3.12",
"@hapi/inert": "^7.1.0",
"@hapi/scooter": "^8.0.0",
"@hapi/vision": "^7.0.3",
"@playwright/test": "^1.63.0",
"@types/express": "^5.0.0",
"@types/node": "^22.10.0",
"@types/nunjucks": "^3.2.6",
"@types/supertest": "^6.0.2",
"blankie": "^5.0.0",
"csrf-sync": "^4.2.1",
"dotenv": "^18.0.9",
"esbuild": "^0.28.2",
"express": "^4.21.2",
"express-session": "^1.19.0",
"fastify": "^5.12.5",
"fastify-plugin": "^6.0.0",
"govuk-frontend": "^6.5.1",
"helmet": "^8.3.0",
"jsdom": "^25.0.1",
"nunjucks": "^3.2.4",
"supertest": "^7.0.0",
"typescript": "^5.7.2",
"vitest": "^5.0.1"
},
"keywords": [
"govuk",
"defra",
"cookie-banner",
"consent-mode",
"google-tag-manager",
"hapi",
"express",
"fastify"
]
}