irpf/package.json
Marc Reverdin a35c43661b feat(irpf): couche data open source — Eurostat + INSEE build-time
- eurostat.ts : client JSON-stat 2.0, fetch multi-pays, parser flat index
- insee.ts : client BDM SDMX-JSON (prêt pour clé API)
- indicators-config.ts : 32 indicateurs sur 14 thèmes (finances, emploi,
  santé, éducation, cohésion, logement, énergie, numérique, agriculture)
  avec mapping Eurostat dataset + filtres validés
- fetch-indicators.ts : script pré-build → src/data/live/indicators.json
- fetch-indicators integration : Astro hook astro:build:start (cache 6h)
- KpiLive.astro : composant avec badge live, comparaison UE, code couleur
- donnees/index.astro : tableau de bord France avec 7 groupes + tableau
  comparatif France-Allemagne-Espagne-Italie-Suède-Pays-Bas-UE27
- package.json : scripts fetch-data + fetch-and-build

18 indicateurs Eurostat avec valeur FR correcte (Eurostat) au premier run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-07 00:06:05 +02:00

27 lines
No EOL
637 B
JSON

{
"name": "irpf",
"type": "module",
"version": "0.0.1",
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"fetch-data": "npx tsx src/scripts/fetch-indicators.ts",
"fetch-and-build": "npm run fetch-data && npm run build"
},
"dependencies": {
"@astrojs/check": "^0.9.9",
"@astrojs/mdx": "^6.0.2",
"@astrojs/sitemap": "^3.7.3",
"@tailwindcss/vite": "^4.3.0",
"astro": "^6.4.4",
"pagefind": "^1.5.2",
"tailwindcss": "^4.3.0",
"tsx": "^4.19.4",
"typescript": "^6.0.3"
}
}