Migrating from CoffeeScript to es6

I would like to port a fairly large program from CoffeeScript to es6. By pretty large, I mean 3K coffee lines (1.9K no comment) → 4.5K es5 no comment. The coffee is pretty short-lived!

I understand that I can just compile es5 and manually update es6 features. But CS is more like es6 than es5, so I'd rather switch from CS rather than es5. I will use Traceur or 6to5 for inaccessible es6 functions.

Any pointers? I saw one discussion on AirPair , but it was rather incomplete.

+5
source share
1 answer

To automate the process, a library runs in the process: https://github.com/eventualbuddha/decaffeinate

This is still incomplete, but perhaps this could be a good starting point.

+3
source

Source: https://habr.com/ru/post/1209852/


All Articles