react-boilerplate / react-boilerplate-cra-template

:fire: Setup Create React App with React Boilerplate. Highly scalable & Best DX & Performance Focused & Best practices.
https://react-boilerplate.github.io/react-boilerplate-cra-template/
MIT License
1.87k stars 392 forks source link

chore(deps): update serve v13.0.2 to v14.0.1 #193

Closed qeleb closed 2 years ago

qeleb commented 2 years ago

updating the serve package

As of July of 2021, this boilerplate requires Node 14.x or greater

Node 14.x compatibility is important until its end-of-life in April of 2023 (then this boilerplate can reap the benefits of Node 16 and 18 !).

I've updated the serve package to the latest version, 14.0.1, which now requires Node 14+ (which is okay). This version has updated dependencies, resulting in a leaner lock file & fewer dependencies to install.

final thoughts

Serve is really weakly coupled with create-react-app, so no changes were necessary apart from the upgrade in the package.json.

Serve should be installed globally, although I understand why it's not. If it were not included, something like: "preinstall": "npm i yarn -g && npm i serve -g" would need to be added as an extra step for users before getting started.