airbnb / polyglot.js

Give your JavaScript the ability to speak many languages.
http://airbnb.github.io/polyglot.js
BSD 2-Clause "Simplified" License
3.71k stars 208 forks source link

Code Converted to the new syntax of ECMAScript (Version 6) with the t… #62

Closed DVSCross closed 8 years ago

DVSCross commented 8 years ago

…ool …

ECMA Class Parser (A Tool on development by me). This first version, basically identifies the class-like structures, on codes based in Object Oriented Programming, and convert it to the new Syntax.Some samples and explanations at the page http://es6-features.org/#ClassDefinition. (The style of code may be differente from the orignal code by the use of JSBeautify, but it's affects mainly the spacing). If possible,a feedback would be nice and will encourage this work, that has the objective to be published on a Workshop. Contact-me at danielvsc@dcc.ufmg.br. Best Regards. Thanks!

ljharb commented 8 years ago

Thanks for your contribution! We intentionally don't use a build process in this package - but if we used ES6, we absolutely would need a build process, since publishing anything beyond ES5 is incredibly user-hostile.

When and if this package is converted to use ES6, we'll be adding a babel build step, and we'll be doing the translation by hand.