AlaskaAirlines / WC-Generator

Auro's automated web component generator
https://auro.alaskaair.com/getting-started/developers/generator/install
Apache License 2.0
5 stars 9 forks source link

Automate updates to browserslist #194

Open blackfalcon opened 3 years ago

blackfalcon commented 3 years ago

Is your feature request related to a problem? Please describe.

As any repo ages, resources also age. But whenever a repo runs the build command, an alert goes by unnoticed

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

We can't influence where this shows up, but we should have a better way to ensure that this lib is updated.

Describe the solution you'd like

Somewhere in a build pipeline or with a pre-commit, it would be great if we could work in the following command to ensure that our test environments are always up to date.

npx browserslist@latest --update-db
blackfalcon commented 3 years ago

I removed the issue label as this is a stand-alone issue, not part of a release.

blackfalcon commented 3 years ago

Found this StackOverflow that has a compelling option. Install the npm packages as dependencies and they will get updated with the regular chore deps updates.

https://stackoverflow.com/questions/55271798/browserslist-caniuse-lite-is-outdated-please-run-next-command-npm-update-cani

blackfalcon commented 1 year ago

Suggestion: we could create a npm task for "browserslist": "npx browserslist@latest --update-db" and use that as a pre-commit hook.