Skip to content

Commit

Permalink
Configure Renovate (#72)
Browse files Browse the repository at this point in the history
* Add renovate.json

* Disable updating Node.js version.

* Update renovate.json

* Specify Node.js version supported.

* Add ":preserveSemverRanges".

* Add version constraints for Node.js 8 support.

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Yuchen Shi <[email protected]>
Co-authored-by: Tim Stirrat <[email protected]>
  • Loading branch information
4 people authored Mar 24, 2020
1 parent 765bb26 commit e5c432c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "firebase-tools-ui",
"version": "0.1.0",
"private": true,
"engines": {
"node": ">= 8.0.0"
},
"dependencies": {
"@rmwc/button": "^5.7.2",
"@rmwc/card": "^5.7.2",
Expand Down
37 changes: 37 additions & 0 deletions renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// This file configures the Renovate bot on GitHub. See:
// https://docs.renovatebot.com/configuration-options/
// This is a JSON5 (json5.org) file which supports comments and unquoted keys.
{
extends: [
"config:base",
":preserveSemverRanges",
],
packageRules: [
{
// Do not upgrade Node.js versions ("engine" field in package.json).
packageNames: ["node"],
enabled: false,
},

// BEGIN version constraints for Node.js 8 support.
// TODO: Remove these once Renovate learns to ignore incompatible versions.
// https://github.com/renovatebot/renovate/issues/4826
{
packageNames: ["@testing-library/react"],
allowedVersions: '<10',
},
{
packageNames: ["husky"],
allowedVersions: '<4',
},
{
packageNames: ["lint-staged"],
allowedVersions: '<10',
},
{
packageNames: ["prettier"],
allowedVersions: '<2',
},
// END version constraints for Node.js 8 support.
],
}

0 comments on commit e5c432c

Please sign in to comment.