Add backfill-featured-smart.ts: extracts source URLs from post content, queries FPA WP API for matching featured images, scrapes og:image from IHF/EHF/Handball-Planet sources, falls back to FPA title search for Portuguese articles, and finally tries WebDAV archive. More robust than the slug-only backfill-featured-from-fpa.ts. All 147 published posts now have featured_media (backfill ran in prior heartbeat). New npm script backfill:featured-smart for future re-runs. Paperclip-Issue: BIT-25556 Paperclip-Run: f182fddd-6d43-437a-9d2f-644fd0a76330
30 lines
972 B
JSON
30 lines
972 B
JSON
{
|
|
"name": "news-writer-pipeline",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"description": "Aggregator-first writer pipeline for andebol.net (shortlist, token metrics, WP drafts)",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "npm run build && node --test dist/*.test.js",
|
|
"test:coverage": "npm run build && node --experimental-test-coverage --test dist/*.test.js",
|
|
"aggregator": "node dist/aggregator-server.js",
|
|
"aggregator:dev": "tsx src/aggregator-server.ts",
|
|
"cycle": "node dist/run-cycle.js",
|
|
"cycle:dev": "tsx src/run-cycle.ts",
|
|
"backfill:featured": "node dist/backfill-featured-from-fpa.js",
|
|
"backfill:featured-smart": "node dist/backfill-featured-smart.js"
|
|
},
|
|
"dependencies": {
|
|
"fastify": "^4.28.1",
|
|
"pdf-parse": "^1.1.1",
|
|
"rss-parser": "^3.13.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.14.0",
|
|
"tsx": "^4.15.0",
|
|
"typescript": "^5.4.5"
|
|
}
|
|
}
|