Add Renovate config, track vendored JS libs via package.json
The Renovate workflow had no renovate.json, so with onboarding off it skipped the repo entirely. Now config:recommended plus a regex manager for the Dockerfile's PMTILES_VERSION/PLANETILER_VERSION pins. public/vendor/'s npm-published libraries (maplibre-gl, pmtiles, maplibre-contour, maplibre-gl-lanes, flag-icons, suncalc) are pinned in package.json; bin/vendor-sync.mjs copies them out of node_modules, and runs as a Renovate postUpgradeTask so bump PRs carry the new files. Re-syncing the current versions reproduces the vendored files exactly, except suncalc's hand-added header, moved into third-party-notices.
This commit is contained in:
1 parent
157759d44b
commit
f62987b1de
10 files changed
+413
-18
No files matched your search
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": ["config:recommended"],
|
||||
"timezone": "Europe/Bratislava",
|
||||
"packageRules": [
|
||||
{
|
||||
"description": "package.json only pins public/vendor/, so re-sync the vendored files in the same PR",
|
||||
"matchManagers": ["npm"],
|
||||
"postUpgradeTasks": {
|
||||
"commands": ["npm ci --ignore-scripts --no-audit --no-fund", "node bin/vendor-sync.mjs"],
|
||||
"fileFilters": ["public/vendor/**"],
|
||||
"executionMode": "branch"
|
||||
}
|
||||
}
|
||||
],
|
||||
"customManagers": [
|
||||
{
|
||||
"customType": "regex",
|
||||
"description": "Dockerfile ARG *_VERSION pins annotated with a `# renovate:` comment",
|
||||
"managerFilePatterns": ["/(^|/)Dockerfile$/"],
|
||||
"matchStrings": [
|
||||
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\s+ARG \\S+_VERSION=(?<currentValue>\\S+)"
|
||||
],
|
||||
"extractVersionTemplate": "^v?(?<version>.*)$"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user