Skip to content

Commit e698e9a

Browse files
mwczgithub-actions[bot]heyMP
authored
fix: loosen nodejs version restrictions for users and developers (#1748)
* release in test mode * update lock * build: set supported build envs to 12-16 * suggest nvm in readme, set engines to node 10+ * support node 12+ for root devtools, all versions for components * reactivate accidentally commented release script lines * remove node 16 from test suite and supported build engines * add avn/nvm suggestion to README Co-authored-by: Michael Potter <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Michael Potter <[email protected]>
1 parent e190e3b commit e698e9a

File tree

35 files changed

+9
-110
lines changed

35 files changed

+9
-110
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
strategy:
5050
matrix:
51-
node: ['12.x']
51+
node: ['12.x', '14.x']
5252
if: |
5353
(
5454
github.event_name == 'pull_request' &&

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ npm run dev -- --storybook --docs # This will build and spin up a local server w
2626
```
2727

2828
### Additional dependencies
29+
30+
#### Hub
31+
2932
If you will be doing any release work, it is recommended that you install Hub.
3033

3134
To install on a MacOS: `brew install hub`.
@@ -35,6 +38,10 @@ For other systems, please see documentation:
3538

3639
_Note: You will need to use [Node](https://nodejs.org/en/) v12 or higher._
3740

41+
#### nvm
42+
43+
Building PatternFly Elements requires specific versions of Node.js. To automate usage of the correct version, it is recommended that contributors install [nvm](https://github.com/nvm-sh/nvm#readme) as well an automatic version switcher like [avn](https://github.com/wbyoung/avn) or [shell-specific nvm integration](https://github.com/nvm-sh/nvm#deeper-shell-integration). With those installed, your terminal will automatically switch to the correct Node.js version when you `cd` into the PatternFly Elements repository.
44+
3845
## Command Line Helper Scripts
3946
Many commands have an optional argument of space-separated component name(s), if left off it will assume it should run on all components. These should run from the project root.
4047

elements/pfe-accordion/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
"url": "github:patternfly/patternfly-elements",
2525
"directory": "elements/pfe-accordion"
2626
},
27-
"engines": {
28-
"node": ">=10 <13"
29-
},
3027
"browserslist": [
3128
"last 2 versions",
3229
"Firefox >= 78",

elements/pfe-autocomplete/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"url": "github:patternfly/patternfly-elements",
1717
"directory": "elements/pfe-autocomplete"
1818
},
19-
"engines": {
20-
"node": ">=10 <13"
21-
},
2219
"browserslist": [
2320
"last 2 versions",
2421
"Firefox >= 78",

elements/pfe-avatar/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"url": "github:patternfly/patternfly-elements",
1717
"directory": "elements/pfe-avatar"
1818
},
19-
"engines": {
20-
"node": ">=10 <13"
21-
},
2219
"browserslist": [
2320
"last 2 versions",
2421
"Firefox >= 78",

elements/pfe-badge/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"url": "github:patternfly/patternfly-elements",
1717
"directory": "elements/pfe-badge"
1818
},
19-
"engines": {
20-
"node": ">=10 <13"
21-
},
2219
"browserslist": [
2320
"last 2 versions",
2421
"Firefox >= 78",

elements/pfe-band/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
"url": "github:patternfly/patternfly-elements",
2222
"directory": "elements/pfe-band"
2323
},
24-
"engines": {
25-
"node": ">=10 <13"
26-
},
2724
"browserslist": [
2825
"last 2 versions",
2926
"Firefox >= 78",

elements/pfe-button/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
"url": "github:patternfly/patternfly-elements",
2323
"directory": "elements/pfe-button"
2424
},
25-
"engines": {
26-
"node": ">=10 <13"
27-
},
2825
"browserslist": [
2926
"last 2 versions",
3027
"Firefox >= 78",

elements/pfe-card/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
"url": "github:patternfly/patternfly-elements",
2020
"directory": "elements/pfe-card"
2121
},
22-
"engines": {
23-
"node": ">=10 <13"
24-
},
2522
"browserslist": [
2623
"last 2 versions",
2724
"Firefox >= 78",

elements/pfe-clipboard/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@
2222
"url": "github:patternfly/patternfly-elements",
2323
"directory": "elements/pfe-clipboard"
2424
},
25-
"engines": {
26-
"node": ">=10 <13"
27-
},
2825
"browserslist": [
2926
"last 2 versions",
3027
"Firefox >= 78",

0 commit comments

Comments
 (0)