-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
86 lines (86 loc) · 2.19 KB
/
Copy pathpackage.json
File metadata and controls
86 lines (86 loc) · 2.19 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
{
"name": "smallest-cookie-banner",
"version": "2.1.3",
"description": "The smallest legally compliant cookie consent banner. ~7KB gzipped. Auto-detects EU for GDPR, implied consent elsewhere. Scoped Web Components with Shadow DOM.",
"main": "dist/cookie-banner.js",
"module": "dist/cookie-banner.js",
"types": "dist/cookie-banner.d.ts",
"unpkg": "dist/cookie-banner.min.js",
"jsdelivr": "dist/cookie-banner.min.js",
"files": [
"dist"
],
"scripts": {
"build": "tsc && node scripts/fix-umd.js && terser dist/cookie-banner.js -o dist/cookie-banner.min.js -c -m --comments false",
"build:watch": "tsc --watch",
"test": "jest --coverage",
"test:watch": "jest --watch",
"lint": "eslint src __tests__",
"lint:fix": "eslint src __tests__ --fix",
"prepublishOnly": "npm run lint && npm test && npm run build",
"typecheck": "tsc --noEmit"
},
"repository": {
"type": "git",
"url": "git+https://github.com/DreadfulCode/smallest-cookie-banner.git"
},
"keywords": [
"cookie",
"banner",
"consent",
"gdpr",
"ccpa",
"privacy",
"smallest",
"minimal",
"tiny",
"typescript"
],
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/DreadfulCode/smallest-cookie-banner/issues"
},
"homepage": "https://github.com/DreadfulCode/smallest-cookie-banner#readme",
"devDependencies": {
"@eslint/js": "^9.39.1",
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^8.49.0",
"@typescript-eslint/parser": "^8.49.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"terser": "^5.27.0",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "jsdom",
"roots": [
"<rootDir>/__tests__"
],
"moduleFileExtensions": [
"ts",
"js"
],
"transform": {
"^.+\\.ts$": "ts-jest"
},
"coverageReporters": [
"text",
"lcov",
"json-summary"
],
"coverageThreshold": {
"global": {
"branches": 88,
"functions": 80,
"lines": 90,
"statements": 90
}
},
"collectCoverageFrom": [
"src/**/*.ts"
]
}
}