Refactor badge color functions (#2742)
- Replace the idea of color schemes with the idea of named colors (since none of our colorschemes have used `colorA`)
- Pass through the normalized color to `_shields_test` to harmonize with BaseService and simplify testing
- Update service tests
- Move responsibility for color generation into the npm package
- Remove several color helper functions and their tests
- Update gh-badge public API to accept `color` and `labelColor`
This is a precursor to refactoring some of the logo code for #2473.
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
"fsos": "^1.1.3",
|
||||
"gh-badges": "file:gh-badges",
|
||||
"glob": "^7.1.1",
|
||||
"is-css-color": "^1.0.0",
|
||||
"joi": "14.3.1",
|
||||
"js-yaml": "^3.12.1",
|
||||
"jsonpath": "~1.0.0",
|
||||
|
||||
Reference in New Issue
Block a user