-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Finish the code reorg #2832
Comments
After we merged the last refactoring PR I realised that we didn't update https://github.com/badges/shields/blob/master/now.json to account for the new layout. Can we squeeze that change into #2829 or #2831 ahead of review. |
Added to #2829. |
This moves the loader code into `core/base-service`, leaving behind in `services/index.js` only the convenience imports. Ref #2832
This moves the loader code into `core/base-service`, leaving behind in `services/index.js` only the convenience imports. Ref #2832
Seems that the list of categories belongs with the services, while the support code belongs with base service. Ref #2832
Seems that the list of categories belongs with the services, while the support code belongs with base service. Ref #2832
This moves a few helpers from `lib/` to `services/`: build-status.js build-status.spec.js color-formatters.js color-formatters.spec.js contributor-count.js licenses.js licenses.spec.js php-version.js php-version.spec.js text-formatters.js text-formatters.spec.js version.js version.spec.js And one from `lib/` to `core/`: unhandled-rejection.spec.js The diff is long, but the changes are straightforward. Ref #2832
I started moving more of the legacy helpers, though it seems like it makes more sense to close out the home stretch of refactors in the next couple weeks. This is generating a bunch of conflicts with those changes, and mostly involves changing code that we want to delete. After #3162 and #3163, what's left is:
We could open new issues for 2 and 3 and close this out. |
#3392 removes |
I've gotten a good bit of the way through the work of implementing #2698 but I'm running out of steam so thought I'd pause. I could pick it up later or maybe other folks would like to pick up what's left.
After #2829 and #2831 are merged here's what remains:
services/categories.js
, probably by leaving the category defs there and moving the rest intocore/base-service
(Reorganize categories code #3100)services/index.js
, moving the loader tocore/base-service/loader.js
(Refactor service loader; test on [static dynamic endpoint] #2861)lib/
toservices/
(Move "good" badge helpers from lib/ to services/ #3101)lib/
tocore/legacy/
#2698 can be used as a reference.
The text was updated successfully, but these errors were encountered: