Add Color class from tagcloud hexo helper#58
Add Color class from tagcloud hexo helper#58segayuu merged 4 commits intohexojs:masterfrom segayuu:Add-Color
Conversation
|
That looks interesting, @segayuu! Is it possible you can add more information? Maybe also provide the code to clone & test? |
|
Btw, reported an issue about |
|
Thank @yoshinorin !
I did not know the issue, thank you! |
OK. Understood 😃 IMHO we might as well include this PR to hexo v4. How do you think? |
|
@yoshinorin I agree with your opinion! 😆 |
|
@hexojs/core anyone wants to add something or we can merge? |
|
I suggest to rebase to include test in node 8-12. |
|
@curbengh Since rebase was done and a new error was corrected, there was no problem with merge. |
Agenda
tagcloudhelper depends on theColorinner class. This class is reusable but is not currently tested alone.Therefore, after porting to
hexo-util, we separate tagcloud-dependent code from the original test. This improves the maintainability.Clone
Test
Related
https://github.com/hexojs/hexo/blob/3.8.0/lib/plugins/helper/tagcloud.js
https://github.com/hexojs/hexo/blob/3.8.0/test/scripts/helpers/tagcloud.js