Skip to content

Commit

Permalink
Increase minimum Node requirement to 18.12 (#16)
Browse files Browse the repository at this point in the history
Now that Node 16 has reached EOL and Node 20 is the new LTS, package
maintainers have been raising their minimum required Node versions. In
particular, stylelint just recently changed their requirement to Node
18.12+.

This commit raises Nextgen's Node requirement to 18.12 so that users
aren't caught by surprise when trying to use popular Node packages like
stylelint.
  • Loading branch information
mattbrictson authored Nov 10, 2023
1 parent 795584b commit 39422cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Nextgen generates apps using **Rails 7.1**.

- **Ruby 3.0+** is required
- **Rubygems 3.4.8+** is required (run `gem update --system` to get it)
- **Node 18+ and Yarn** are required if you choose Vite or other Node-based options
- **Node 18.12+ and Yarn** are required if you choose Vite or other Node-based options
- Additional tools may be required depending on the options you select (e.g. PostgreSQL)

Going forward, my goal is that Nextgen will always target the latest stable version of Rails and the next pre-release version. Support for Node LTS and Ruby versions will be dropped as soon as they reach EOL (see [Ruby](https://endoflife.date/ruby) and [Node](https://endoflife.date/nodejs) EOL schedules).
Expand Down
2 changes: 1 addition & 1 deletion template/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"private": true,
"engines": {
"node": ">=18.0.0"
"node": ">=18.12.0"
}
}

0 comments on commit 39422cb

Please sign in to comment.