-
Notifications
You must be signed in to change notification settings - Fork 284
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
Convert to ES6 #372
Comments
@rexagod , how shall we do this? |
I was thinking something like this would make sense after we're at little or no pending PRs, since we could get all that merged code refactored all in one big scoop, rather than rebasing every PR to fit this standard. What do you think? |
+1 I actually created milestones for version 1 release: https://github.com/publiclab/Leaflet.DistortableImage/milestone/3 I think we are getting there now that the distortion bugs are gone! I guess this is something we would want to add to that list. also adding your matcher project and the dynamic keymapper. let me know your thoughts! |
Sounds good! Let's get these milestones done! 🙌 |
Will return back here once those are done. |
I am going to start formulating a checklist in the PR description of thinks we can rewrite in ES6 (not exhaustive just as they come to mind) @rexagod |
Just adding a 👍 ❤️ to this and especially to the This would set us up for some EXTREMELY powerful new tools like https://github.com/publiclab/matcher-core/issues/1 - and seems like a reasonable chunk to bite off from the broader ES6 upgrade? |
* ADD: Webpack module bundler Up to this point, we have been writing old ES5. This change introduces Webpack, Webpack development server, Babel... From now on, we will be able to write modern JavaScript. Resolves #372 * UPDATE: README "Contributing" section "Contributing" section updated to show project setup with Webpack. * ADD: Webpack config file documentation The documentation for the Webpack configuration file can be found in WEBPACK.md * ADD: "npm run build" to travis.yml * ADD: leaflet.distortableimage.js to git tracker Added to resolve merge conflict. * UPDATE: Webpack.md Fixed redundant spaces and a grammar issue. * UPDATE: Project configuration files Changes: - Add npm build script to pre-commit task - Remove redundant Grunt's "default" task - Empty line to .gitignore - Move vendor.css to load before our css - Change WDS port from 3000 to 8080 - Update README.md * ADD: "watch" Grunt task to run tests on change * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update WEBPACK.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * v0.12.6 🚀🚀🚀 * FIX: Karma tests coverage Karma configuration modified to generate the coverage folder inside of the working directory and without PhantomJS subfolder. Minor change: browserlist update to include browsers with the usage > 0.2% Resolves #537 * Rebase the branch Co-authored-by: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com>
* ADD: Webpack module bundler Up to this point, we have been writing old ES5. This change introduces Webpack, Webpack development server, Babel... From now on, we will be able to write modern JavaScript. Resolves #372 * UPDATE: README "Contributing" section "Contributing" section updated to show project setup with Webpack. * ADD: Webpack config file documentation The documentation for the Webpack configuration file can be found in WEBPACK.md * ADD: "npm run build" to travis.yml * ADD: leaflet.distortableimage.js to git tracker Added to resolve merge conflict. * UPDATE: Webpack.md Fixed redundant spaces and a grammar issue. * UPDATE: Project configuration files Changes: - Add npm build script to pre-commit task - Remove redundant Grunt's "default" task - Empty line to .gitignore - Move vendor.css to load before our css - Change WDS port from 3000 to 8080 - Update README.md * ADD: "watch" Grunt task to run tests on change * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update WEBPACK.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * v0.12.6 🚀🚀🚀 * FIX: Karma tests coverage Karma configuration modified to generate the coverage folder inside of the working directory and without PhantomJS subfolder. Minor change: browserlist update to include browsers with the usage > 0.2% Resolves #537 * Rebase the branch Co-authored-by: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com>
…liclab#512) * ADD: Webpack module bundler Up to this point, we have been writing old ES5. This change introduces Webpack, Webpack development server, Babel... From now on, we will be able to write modern JavaScript. Resolves publiclab#372 * UPDATE: README "Contributing" section "Contributing" section updated to show project setup with Webpack. * ADD: Webpack config file documentation The documentation for the Webpack configuration file can be found in WEBPACK.md * ADD: "npm run build" to travis.yml * ADD: leaflet.distortableimage.js to git tracker Added to resolve merge conflict. * UPDATE: Webpack.md Fixed redundant spaces and a grammar issue. * UPDATE: Project configuration files Changes: - Add npm build script to pre-commit task - Remove redundant Grunt's "default" task - Empty line to .gitignore - Move vendor.css to load before our css - Change WDS port from 3000 to 8080 - Update README.md * ADD: "watch" Grunt task to run tests on change * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update WEBPACK.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * Update README.md Co-Authored-By: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com> * v0.12.6 🚀🚀🚀 * FIX: Karma tests coverage Karma configuration modified to generate the coverage folder inside of the working directory and without PhantomJS subfolder. Minor change: browserlist update to include browsers with the usage > 0.2% Resolves publiclab#537 * Rebase the branch Co-authored-by: Sasha Boginsky <41092741+sashadev-sky@users.noreply.github.com>
@publiclab/maintainers possibly this contains some more FTOs, or could be mostly complete? |
Hello @TildaDares , I saw that some tasks here are yet to be completed. Please can I be assigned to work on the arrow functions or method creation syntax? |
Hi @Ranecodes -- take a look at this issue to find some! Thank you! #1086 (comment) |
Thank you! |
we want to start moving towards ES6 implementation.
would significantly improve everyone's development experience enough to outweigh the cost of implementing it. The leaflet library itself is already completely transformed for ES6 use.
Checklist:
ES5
ES6
arrow functions
variables - get rid of
var
uselet
andconst
insteadstring interpolation
ES5
ES6
The text was updated successfully, but these errors were encountered: