AlaskaAirlines / auro-icon

Custom HTML element for the use of easily displaying an icon from the Auro Icon library
https://auro.alaskaair.com/components/auro/icon
Apache License 2.0
0 stars 4 forks source link

Pre-commit and husky update #65

Closed AuroDesignSystem closed 1 year ago

AuroDesignSystem commented 1 year ago

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

The current badge element is well behind recent versions of core support functions.

Describe the solution you'd like

Update the following core features of the badge element

  1. husky pre-commit hooks
  2. update to wc-test-runner

The following outlines the steps needed for updating any repo to the latest version of Husky.

  1. npx husky-init
  2. npm i @open-wc/testing@latest @web/test-runner@latest @web/dev-server@latest --save-dev
  3. npm run prepare
  4. chmod ug+x .husky/*
  5. chmod ug+x .git/hooks/*
  6. Update package.json - "test": "wtr --coverage", and "test:watch": "wtr --watch",
  7. Add web-test-runner.config.mjs
  8. Update .husky/pre-commit and necessary pre-commit actions
  9. Delete legacy Husky configs from package.json
  10. Delete karma.conf.js file
  11. Uninstall @open-wc/testing-karma

Exit criteria

This issue will not be considered complete once the listed core features are updated along with all associated dependencies and all features work as previously expected with node 18 installed.

This issue was copied from #43 by @blackfalcon.

This issue was copied from #63 by @blackfalcon.