-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Move to ES6 #127
Comments
Quick PRs tend to just be "ES6ish" in that they're broad stroke replacements that use the new syntax, but don't actually involve significantly rewriting code to take advantage of the patterns that ES2015-ES2020 enables, compared to ES5, so I'd rather not have a "quick PR" and would much more prefer a proper rewrite (which can of course be in the form of lots of small PRs) =) Having said that, I would love to modernize it, and am currently focused on reworking the Primer's codebase, writing a custom element for the on-page graphics so I can replace the React code that exists for that, to turn it back into a true (but modern) HTML page. If you want to get a head start on me getting to bezier.js, by all means have at it! |
Based on musings in #128: If bezier.js gets uplifted to ES6, then that should be fully committed to: no more Also, let's do this in small, easy to PR, easy to review, and easy to land steps:
Once that work's done, we can add in |
I will probably do some work on this tomorrow (Friday, August 7) too, since I've reached the point in my rewrite of the Bezier Primer that it needs an ES6 version of Bezier.js for all the examples to actually work. |
I've finished step 2 and will be working on step 3. |
I've finished step 3 and will be working on step 4. Once that's done, we'll be ready to tackle the real "meat and potatoes" of this issue: auditing, writing tests for, and (hopefully) modernizing the code for every single function. |
step 4 down, I'll get step 5/6 out of the way and then probably stop for a bit because step 7 is just going to be a lot of PRs =) |
turns out Jest has some issues with detecting module code, so that's not quite as much of a drop-in as I'd hoped... Jest 27 is supposedly going to have ESM support (if they don't push it again, it was initially slated for Jest 26) but 26 was released in May, so I have low hopes for 27 being released before next year. |
Steps 5 and 6 done, so I'm going to (literally =) call it a day and will probably let this sit for a few days now that I can use bezier.js as an ES module (albeit not a "done" es module) for the purposes of redoing the Primer tech stack and sketch code. |
@Pomax I'll start step 7 this weekend ;) |
ES6 deployed. |
Are there plans to modernize the codebase, to probably encourage more development? I could make a quick PR for you @Pomax
The text was updated successfully, but these errors were encountered: