Skip to content

Commit

Permalink
feat: split configs
Browse files Browse the repository at this point in the history
  • Loading branch information
p-chan committed Sep 1, 2022
1 parent 35d1b71 commit 09f981f
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 85 deletions.
10 changes: 10 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>stardust-configs/renovate-config:base",
":pinAllExceptPeerDependencies",
"schedule:monthly",
"github>stardust-configs/renovate-config:groupNonMajorDevDependencies",
"github>stardust-configs/renovate-config:groupNonMajorDependencies"
]
}
10 changes: 10 additions & 0 deletions automergeNonMajor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
}
]
}
12 changes: 12 additions & 0 deletions base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
":semanticPrefixFixDepsChoreOthers",
":ignoreModulesAndTests",
":autodetectPinVersions",
":disableRateLimiting",
"group:monorepos",
"group:recommended",
"workarounds:all"
]
}
4 changes: 4 additions & 0 deletions default.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["github>stardust-configs/renovate-config:base"]
}
11 changes: 11 additions & 0 deletions groupNonMajorDependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"groupName": "dependencies (non-major)",
"matchDepTypes": ["dependencies"],
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": ["minor", "patch"]
}
]
}
11 changes: 11 additions & 0 deletions groupNonMajorDevDependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"packageRules": [
{
"groupName": "devDependencies (non-major)",
"matchDepTypes": ["devDependencies"],
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": ["minor", "patch"]
}
]
}
9 changes: 9 additions & 0 deletions lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>stardust-configs/renovate-config:base",
":pinOnlyDevDependencies",
"schedule:monthly",
"github>stardust-configs/renovate-config:automergeNonMajor"
]
}
9 changes: 9 additions & 0 deletions libNode.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"github>stardust-configs/renovate-config:base",
":pinAllExceptPeerDependencies",
"schedule:monthly",
"github>stardust-configs/renovate-config:automergeNonMajor"
]
}
85 changes: 0 additions & 85 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,90 +23,5 @@
"devDependencies": {
"renovate": "32.186.1",
"standard-version": "9.5.0"
},
"renovate-config": {
"default": {
"extends": [
"@stardust-configs/renovate-config:base"
]
},
"base": {
"extends": [
":semanticPrefixFixDepsChoreOthers",
":ignoreModulesAndTests",
":autodetectPinVersions",
":disableRateLimiting",
"group:monorepos",
"group:recommended",
"workarounds:all"
]
},
"app": {
"extends": [
"@stardust-configs/renovate-config:base",
":pinAllExceptPeerDependencies",
"schedule:monthly",
"@stardust-configs/renovate-config:groupNonMajorDevDependencies",
"@stardust-configs/renovate-config:groupNonMajorDependencies"
]
},
"lib": {
"extends": [
"@stardust-configs/renovate-config:base",
":pinOnlyDevDependencies",
"schedule:monthly",
"@stardust-configs/renovate-config:automergeNonMajor"
]
},
"lib-node": {
"extends": [
"@stardust-configs/renovate-config:base",
":pinAllExceptPeerDependencies",
"schedule:monthly",
"@stardust-configs/renovate-config:automergeNonMajor"
]
},
"automergeNonMajor": {
"packageRules": [
{
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": [
"minor",
"patch"
],
"automerge": true
}
]
},
"groupNonMajorDevDependencies": {
"packageRules": [
{
"groupName": "devDependencies (non-major)",
"matchDepTypes": [
"devDependencies"
],
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": [
"minor",
"patch"
]
}
]
},
"groupNonMajorDependencies": {
"packageRules": [
{
"groupName": "dependencies (non-major)",
"matchDepTypes": [
"dependencies"
],
"matchCurrentVersion": "!/^0/",
"matchUpdateTypes": [
"minor",
"patch"
]
}
]
}
}
}

0 comments on commit 09f981f

Please sign in to comment.