blaze icon indicating copy to clipboard operation
blaze copied to clipboard

Refactored html-tools and htmljs to move ES6 version

Open guncebektas opened this issue 3 years ago • 15 comments

As requested on https://github.com/meteor/blaze/issues/367, I started to migrate code to ES6. All tests are passing, please review and let me know for required changes.

guncebektas avatar Jul 25 '22 14:07 guncebektas

Besides the pr, I found some exported function has no usage in the blaze like isNully, isTagEnsured, etc... should we stop exporting them.

guncebektas avatar Jul 25 '22 14:07 guncebektas

Thank you @guncebektas for this PR. Please note, that we first need to merge #382 before we can continue to work on the actual migrations. Once it's done I will review this one.

jankapunkt avatar Jul 25 '22 15:07 jankapunkt

@guncebektas I merged #382 to the master branch so you should pull it in to use it to lint your package. Please make sure there are no remaining lint errors. You can read in the CONTRIBUTING file how to use the linter.

jankapunkt avatar Jul 25 '22 20:07 jankapunkt

This will be hard to achieve :)

guncebektas avatar Jul 25 '22 20:07 guncebektas

Hey @guncebektas sorry that was a bit fast from my side. Of course there may be design decisions from back then that will conflict with the linter. For now please only to non-breaking migrations. All other issues will be discussed during review.

jankapunkt avatar Jul 25 '22 21:07 jankapunkt

Another thing is, which I mentioned in #385 is that you should please only do one package per PR. Otherwise this gets easily out of hand and becomes impossible to review. For now please keep the scope only to the two packages you worked on.

jankapunkt avatar Jul 25 '22 21:07 jankapunkt

no problem. I will try to do my best.

guncebektas avatar Jul 25 '22 21:07 guncebektas

It wasn't possible to fulfill all linting rules but I tried to minimize errors. I think a review at this point will be good. All tests of the project are passing.

In addition to this, I used my version as local packages in my project and all of my e2e tests are passing.

I can trust myself and move faster after reviews. @jankapunkt

guncebektas avatar Jul 25 '22 21:07 guncebektas

I just focused on htmljs package for now. My most comments focus on using ES6 builtin functions and syntax in favour of old or depracated syntaxes. Please let's focus first only on htmljs before we continue to html-tools package.

jankapunkt avatar Jul 26 '22 08:07 jankapunkt

We are getting closer :-)

jankapunkt avatar Aug 03 '22 07:08 jankapunkt

Are we ok with htmljs @jankapunkt

guncebektas avatar Aug 27 '22 15:08 guncebektas

Once @jankapunkt approves, I will merge this.

StorytellerCZ avatar Aug 28 '22 20:08 StorytellerCZ

Is there a prefered package for the next pr?

guncebektas avatar Aug 29 '22 07:08 guncebektas

hey @guncebektas @StorytellerCZ this is quite a bit to review (which is why in the future there should be only one package per PR) I try to get it done asap the next days!

jankapunkt avatar Aug 30 '22 05:08 jankapunkt

@guncebektas can you please take a look on @DanielDornhardt comments?

StorytellerCZ avatar Nov 27 '23 14:11 StorytellerCZ