Provide reusable presets for the most common dependency types in Gitea projects #97

Merged
lunny merged 5 commits from justusbunsi/renovate-config:reusable-presets into main 2023-12-26 03:11:39 +00:00
2 changed files with 40 additions and 0 deletions
Showing only changes of commit bdc5aa377b - Show all commits

@ -29,5 +29,27 @@ Usage:
}
```
### NPM dependency group
What it does:
- Groups all NPM dependencies[^3] into one PR
- Respects your repository's `separateMajorMinor` setting[^1]
- Groups all NPM dev-dependencies[^3] into one PR
- Respects your repository's `separateMajorMinor` setting[^1]
Usage:
```diff
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"gitea>gitea/renovate-config",
+ "gitea>gitea/renovate-config:npm-deps"
]
}
```
[^1]: [Renovate Docs: separateMajorMinor](https://docs.renovatebot.com/configuration-options/#separatemajorminor)
[^2]: [Renovate Docs: postUpdateOptions](https://docs.renovatebot.com/configuration-options/#postupdateoptions)
[^3]: [Renovate Docs: npm dependency types](https://docs.renovatebot.com/modules/manager/npm/#additional-information)

18
npm-deps.json Normal file

@ -0,0 +1,18 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"npm": {
"enabled": true
},
"packageRules": [
{
"groupName": "npm dependencies",
"matchManagers": ["npm"],
"matchDepTypes": ["dependencies"]
},
{
"groupName": "npm dev-dependencies",
"matchManagers": ["npm"],
"matchDepTypes": ["devDependencies"]
}
]
}