-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
168 lines (168 loc) · 7 KB
/
package.json
File metadata and controls
168 lines (168 loc) · 7 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
165
166
167
168
{
"name": "riksdagsmonitor",
"version": "0.8.18",
"type": "module",
"description": "Swedish Parliament Intelligence Platform - Monitor political activity with systematic transparency",
"main": "dist/lib/shared/index.js",
"types": "dist/lib/shared/index.d.ts",
"exports": {
".": {
"import": "./dist/lib/shared/index.js",
"types": "./dist/lib/shared/index.d.ts"
},
"./shared": {
"import": "./dist/lib/shared/index.js",
"types": "./dist/lib/shared/index.d.ts"
},
"./shared/register-globals": {
"import": "./dist/lib/shared/register-globals.js",
"types": "./dist/lib/shared/register-globals.d.ts"
},
"./cia/*": {
"import": "./dist/lib/cia/*.js",
"types": "./dist/lib/cia/*.d.ts"
},
"./dashboards/*": {
"import": "./dist/lib/dashboards/*.js",
"types": "./dist/lib/dashboards/*.d.ts"
},
"./ui/*": {
"import": "./dist/lib/ui/*.js",
"types": "./dist/lib/ui/*.d.ts"
},
"./scripts/*": {
"import": "./dist/scripts/*.js",
"types": "./dist/scripts/*.d.ts"
}
},
"files": [
"dist/lib",
"dist/scripts",
"README.md",
"LICENSE",
"SECURITY.md"
],
"publishConfig": {
"access": "public",
"provenance": true,
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"dev": "vite",
"prebuild": "npx tsx scripts/generate-news-indexes/index.ts && npx tsx scripts/extract-news-metadata.ts && npx tsx scripts/generate-sitemap-html.ts && npx tsx scripts/generate-rss.ts && npx tsx scripts/generate-sitemap.ts",
"build": "vite build",
"build:lib": "tsc -p tsconfig.lib.json && tsc -p tsconfig.npm-scripts.json",
"postbuild": "cp rss.xml dist/rss.xml && cp sitemap.xml dist/sitemap.xml && cp -r cia-data dist/cia-data",
"preview": "vite preview",
"test": "NODE_OPTIONS='--max-old-space-size=2048' vitest run",
"test:watch": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"cypress:open": "cypress open",
"cypress:run": "cypress run --config video=false",
"cypress:run:fast": "cypress run --config video=false --quiet --browser chrome",
"cypress:run:critical": "cypress run --spec 'cypress/e2e/homepage.cy.js,cypress/e2e/accessibility.cy.js' --config video=false",
"e2e": "npm run build && start-server-and-test preview http://localhost:4173 cypress:run",
"e2e:fast": "npm run build && start-server-and-test preview http://localhost:4173 cypress:run:fast",
"sync-schemas": "npx tsx scripts/sync-cia-schemas.ts",
"validate-data": "npx tsx scripts/validate-against-cia-schemas.ts",
"check-updates": "npx tsx scripts/check-cia-schema-updates.ts",
"generate-types": "npx tsx scripts/generate-types-from-cia-schemas.ts",
"validate-translations": "npx tsx scripts/validate-translations.ts",
"validate-news": "node scripts/validate-news-translations.ts",
"validate-all": "npm run htmlhint && npm run validate-translations && npm run validate-news",
"generate-news": "node scripts/generate-news-enhanced.ts",
"generate-news-indexes": "node scripts/generate-news-indexes.ts",
"generate-sitemap": "node scripts/generate-sitemap.ts",
"generate-sitemap-html": "npx tsx scripts/generate-sitemap-html.ts",
"generate-rss": "npx tsx scripts/generate-rss.ts",
"generate-news-backport": "node scripts/generate-news-backport.ts",
"htmlhint": "sh -c 'htmlhint *.html; set -- news/*.html; if [ -e \"$1\" ]; then htmlhint \"$@\"; else echo \"No news/*.html files to lint\"; fi'",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typedoc": "typedoc",
"typedoc:validate": "npm run typedoc && vitest run tests/jsdoc-validation.test.js",
"coverage": "vitest run --coverage",
"docs:dependencies": "mkdir -p docs/dependencies && (npm list --all --json > docs/dependencies/dependency-tree.json 2> docs/dependencies/dependency-tree.log || true) && (npm list --all > docs/dependencies/dependency-tree.txt 2>> docs/dependencies/dependency-tree.log || true)",
"docs:diagrams": "echo 'Architecture diagrams generation placeholder - implement with graphviz if needed'",
"test:e2ereportmerge": "echo 'Cypress report merge placeholder - mochawesome-merge if multi-spec reports exist'",
"test:e2ereporthtmlall": "echo 'Cypress HTML report generation placeholder - mochawesome-report-generator'",
"build:test-reports": "mkdir -p docs/test-results docs/cypress docs/coverage && ([ -d builds/coverage ] && [ -n \"$(ls -A builds/coverage 2>/dev/null)\" ] && cp -r builds/coverage/* docs/coverage/ || echo 'No coverage directory to copy') && ([ -d builds/test-results ] && [ -n \"$(ls -A builds/test-results 2>/dev/null)\" ] && cp -r builds/test-results/* docs/test-results/ || echo 'No test-results directory to copy') && ([ -d builds/cypress ] && [ -n \"$(ls -A builds/cypress 2>/dev/null)\" ] && cp -r builds/cypress/* docs/cypress/ || echo 'No cypress directory to copy') && echo 'Test reports copied to docs/'",
"docs:sitemap": "node scripts/generate-sitemap.ts",
"serve": "python3 -m http.server 8080",
"linkcheck": "linkinator http://localhost:8080/ --recurse",
"prepublishOnly": "npm run lint && npm run build:lib && npm test",
"prepack": "echo 'Prepack: build artifacts should already be generated (see prepublishOnly/CI)'",
"pre-analysis": "npx tsx scripts/pre-article-analysis.ts",
"pre-analysis:today": "npx tsx scripts/pre-article-analysis.ts --date today",
"pre-analysis:weekly": "npx tsx scripts/pre-article-analysis.ts --aggregate weekly"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Hack23/riksdagsmonitor.git"
},
"keywords": [
"riksdag",
"parliament",
"sweden",
"politics",
"osint",
"transparency",
"intelligence",
"chart.js",
"d3",
"dashboard",
"theme",
"typescript",
"political-data"
],
"author": "Hack23 AB",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Hack23/riksdagsmonitor/issues"
},
"homepage": "https://riksdagsmonitor.com",
"dependencies": {
"ajv": "8.18.0",
"ajv-formats": "3.0.1",
"chart.js": "4.5.1",
"chartjs-plugin-annotation": "3.1.0",
"d3": "7.9.0",
"papaparse": "5.5.3"
},
"devDependencies": {
"@eslint/js": "10.0.1",
"@types/d3": "7.4.3",
"@types/node": "25.5.0",
"@types/papaparse": "5.5.2",
"@vitest/coverage-v8": "4.1.2",
"@vitest/ui": "4.1.2",
"eslint": "10.1.0",
"globals": "17.4.0",
"happy-dom": "20.8.9",
"htmlhint": "1.9.2",
"js-yaml": "4.1.1",
"json-schema-to-typescript": "15.0.4",
"knip": "6.2.0",
"playwright": "1.59.1",
"start-server-and-test": "3.0.0",
"tsx": "4.21.0",
"typedoc": "0.28.18",
"typedoc-plugin-mdn-links": "5.1.1",
"typescript": "6.0.2",
"typescript-eslint": "8.58.0",
"vite": "8.0.3",
"vite-plugin-sri-gen": "1.3.2",
"vitest": "4.1.2",
"worldbank-mcp": "1.0.1"
},
"optionalDependencies": {
"cypress": "15.13.0"
},
"overrides": {
"glob": "13.0.6"
},
"engines": {
"node": ">=25"
}
}