ci / build-and-test (push) Canceled after 0s
Replace the @astrojs/sitemap integration with two handwritten endpoints under src/pages/ so we can attach a Google News <news:news> block to each aviso detail URL. The integration already emitted the news namespace but never the per-URL blocks, so the project was not eligible for Google News indexing. - src/pages/sitemap-index.xml.ts: single-child sitemapindex pointing at /sitemap-0.xml. - src/pages/sitemap-0.xml.ts: home + huella + one entry per aviso from getAvisosAmbientales. Each aviso carries <news:news> with publication name (fuente), language ca, publication_date (ISO), title and keywords (temas joined). - astro.config.mjs: drop the @astrojs/sitemap integration; remove the dependency from package.json and pnpm-lock.yaml. - e2e: add a test asserting the news namespace and at least one <news:news> block with publication_date and language. 22/22 e2e pass; check and eslint clean.
48 lines
1.2 KiB
JSON
48 lines
1.2 KiB
JSON
{
|
|
"name": "ibiza-environmental-watch",
|
|
"type": "module",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=22.12.0",
|
|
"pnpm": ">=9"
|
|
},
|
|
"scripts": {
|
|
"dev": "astro dev",
|
|
"prebuild": "tsx scripts/build-og-image.ts && astro check && eslint .",
|
|
"build": "astro build",
|
|
"preview": "astro preview",
|
|
"check": "astro check",
|
|
"check:watch": "astro check --watch",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix",
|
|
"pretest:e2e": "astro check && astro build",
|
|
"test:e2e": "playwright test",
|
|
"test:e2e:install": "playwright install --with-deps chromium"
|
|
},
|
|
"dependencies": {
|
|
"@astrojs/preact": "^6.0.1",
|
|
"@astrojs/rss": "^4.0.19",
|
|
"astro": "^7.1.3",
|
|
"leaflet": "^1.9.4",
|
|
"pg": "^8.13.0",
|
|
"preact": "^10.24.3"
|
|
},
|
|
"devDependencies": {
|
|
"@astrojs/check": "^0.9.4",
|
|
"@axe-core/playwright": "^4.12.1",
|
|
"@eslint/js": "^10.0.1",
|
|
"@playwright/test": "^1.62.0",
|
|
"@types/leaflet": "^1.9.12",
|
|
"@types/pg": "^8.11.10",
|
|
"axe-core": "^4.12.1",
|
|
"eslint": "^9.39.5",
|
|
"eslint-plugin-astro": "^3.0.1",
|
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
"sharp": "^0.34.0",
|
|
"tsx": "^4.23.1",
|
|
"typescript": "^5.6.3",
|
|
"typescript-eslint": "^8.65.0"
|
|
}
|
|
}
|