/
package.json
96 lines (96 loc) · 3.36 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
{
"name": "@guardian/consent-management-platform",
"version": "13.12.1",
"description": "Consent management for *.theguardian.com.",
"homepage": "https://github.com/guardian/consent-management-platform.git",
"repository": "https://github.com/guardian/consent-management-platform.git",
"license": "Apache-2.0",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*"
],
"scripts": {
"build": "npm-run-all clean --parallel compile types",
"clean": "npm-run-all --parallel clean:*",
"clean:dist": "rm -rf dist/*",
"clean:test-page": "rm -rf test-page/dist/*",
"compile": "rollup --config",
"dev": "yarn clean && yarn compile --watch",
"fix": "yarn lint --fix",
"github-pages-deploy": "gh-pages -d test-page/dist -u \"github-actions-bot <support+actions@github.com>\"",
"lint": "eslint . --ext=js,ts,tsx",
"prepublishOnly": "yarn build",
"readme-toc:commit": "git add README.md && git commit -m 'Update README toc' || true",
"readme-toc:generate": "markdown-toc README.md -i --maxdepth=3",
"release": "np",
"start": "yarn build && serve test-page/dist",
"test": "npm-run-all test:unit test:e2e",
"test:e2e": "start-server-and-test 'yarn test:e2e:serve' http://localhost:10001 'yarn cypress run'",
"test:e2e:serve": "rollup --config --watch",
"test:e2e:ui": "start-server-and-test 'yarn test:e2e:serve --watch' http://localhost:10001 'cypress open'",
"test:unit": "jest --coverage",
"test:vendor-list": "jest -i 'vendors.test.js'",
"tsc": "tsc",
"types": "tsc --project ./tsconfig.build.json",
"validate": "npm-run-all tsc test lint build",
"prepare": "husky install"
},
"prettier": "@guardian/prettier",
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/plugin-proposal-class-properties": "^7",
"@babel/plugin-transform-runtime": "~7.23.9",
"@babel/preset-env": "^7.23.9",
"@babel/preset-typescript": "^7.23.3",
"@babel/runtime": "^7.23.9",
"@changesets/cli": "^2.27.1",
"@guardian/eslint-config-typescript": "^9.0.2",
"@guardian/libs": "16.0.2",
"@guardian/prettier": "^8.0.0",
"@guardian/tsconfig": "^0.2.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-html": "^1.0.3",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-strip": "^3.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^29.5.11",
"@types/mime": "^3.0.4",
"@types/node": "^20.11.8",
"axios": "^1.6.7",
"conventional-changelog-conventionalcommits": "^7.0.2",
"cypress": "^13.6.3",
"cypress-wait-until": "^3.0.1",
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-svelte3": "^4.0.0",
"gh-pages": "^6.1.1",
"husky": "^9.0.6",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.5.0",
"locate-character": "^3.0.0",
"markdown-toc": "^1",
"np": "^9.2.0",
"npm-run-all": "^4",
"prettier": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2",
"rollup": "^2.79.1",
"rollup-plugin-css-only": "^4.5.2",
"rollup-plugin-livereload": "^2",
"rollup-plugin-serve": "^2.0.3",
"rollup-plugin-svelte": "^7.1.6",
"@rollup/plugin-json": "^6.1.0",
"serve": "^14.2.1",
"start-server-and-test": "~2.0.3",
"svelte": "3.59.1",
"tslib": "^2.6.2",
"typescript": "~5.3.3"
},
"peerDependencies": {
"@guardian/libs": "^15.0.0 || ^16.0.0"
}
}