From 5304345a8e9083e33df4dfd5970139e22d1172ba Mon Sep 17 00:00:00 2001 From: Demo Date: Sun, 11 Oct 2026 20:21:09 +0200 Subject: [PATCH] Add example Renovate configurations --- README.md | 10 ++++++++++ example-configurations/renovate.all-in-one.json | 5 +++++ example-configurations/renovate.per-ecosystem.json | 10 ++++++++++ example-configurations/renovate.per-project.json | 11 +++++++++++ 4 files changed, 36 insertions(+) create mode 100644 example-configurations/renovate.all-in-one.json create mode 100644 example-configurations/renovate.per-ecosystem.json create mode 100644 example-configurations/renovate.per-project.json diff --git a/README.md b/README.md index 2cddfce..ec29768 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,16 @@ renovate.json Renovate configuration: one PR for npm and one for NuGet (includi Requirements: PowerShell, Node.js >= 24.11 (e.g. `volta install node@24`), Git, Podman. +## Example configurations + +`example-configurations/` contains alternative `renovate.json` files (copy one over `renovate.json` to use it): + +| File | PRs | +|---|---| +| `renovate.all-in-one.json` | one PR with all updates | +| `renovate.per-ecosystem.json` | one PR for npm, one for NuGet (same as the current `renovate.json`) | +| `renovate.per-project.json` | one PR each for `npm/web`, `npm/utils` and `dotnet` (the .NET projects share `Directory.Packages.props`) | + ## Check only ```powershell diff --git a/example-configurations/renovate.all-in-one.json b/example-configurations/renovate.all-in-one.json new file mode 100644 index 0000000..0def65f --- /dev/null +++ b/example-configurations/renovate.all-in-one.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "All updates (including major) in a single PR", + "extends": ["config:recommended", "group:all"] +} diff --git a/example-configurations/renovate.per-ecosystem.json b/example-configurations/renovate.per-ecosystem.json new file mode 100644 index 0000000..bf17d40 --- /dev/null +++ b/example-configurations/renovate.per-ecosystem.json @@ -0,0 +1,10 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "One PR for npm and one for NuGet (including major updates)", + "extends": ["config:recommended"], + "separateMajorMinor": false, + "packageRules": [ + { "matchManagers": ["npm"], "groupName": "npm" }, + { "matchManagers": ["nuget"], "groupName": "nuget" } + ] +} diff --git a/example-configurations/renovate.per-project.json b/example-configurations/renovate.per-project.json new file mode 100644 index 0000000..b55f8db --- /dev/null +++ b/example-configurations/renovate.per-project.json @@ -0,0 +1,11 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "description": "One PR per project (including major updates). The .NET projects share Directory.Packages.props, so dotnet/ is one unit.", + "extends": ["config:recommended"], + "separateMajorMinor": false, + "packageRules": [ + { "matchFileNames": ["npm/web/**"], "groupName": "npm-web" }, + { "matchFileNames": ["npm/utils/**"], "groupName": "npm-utils" }, + { "matchFileNames": ["dotnet/**"], "groupName": "dotnet" } + ] +}