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" } + ] +}