Skip to content
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 from CoffeeScript to JavaScript to TypeScript #1046

Open
3 of 11 tasks
balupton opened this issue Jun 18, 2016 · 5 comments
Open
3 of 11 tasks

Convert from CoffeeScript to JavaScript to TypeScript #1046

balupton opened this issue Jun 18, 2016 · 5 comments

Comments

@balupton
Copy link
Member

balupton commented Jun 18, 2016

As per https://discuss.bevry.me/t/move-from-coffeescript-to-es6/581?u=balupton

This task will track progress of this conversion in relation to DocPad and what needs to be done.

  • Abstract out testers into own package
  • Abstract out plugin class to own package
  • Abstract out plugin loader to own package

For JavaScript Conversion:

For ultimate TypeScript Conversion:

@paleite
Copy link

paleite commented Jul 4, 2017

https://github.com/decaffeinate/bulk-decaffeinate can be used to bulk-convert all but 3 .coffee-files in Docpad to ES6.

The reason those 3 have problems being converted are because of issues with the way Docpad initializes classes.

EDIT: Scratch that, it's completely automatic with the new 3.0 version of bulk-decaffeinate!

@balupton
Copy link
Member Author

balupton commented Jul 7, 2017

That's cool. I'll check it out last week of July or in August!

@balupton
Copy link
Member Author

balupton commented Sep 4, 2018

https://decaffeinate-project.org

@balupton
Copy link
Member Author

balupton commented Sep 4, 2018

Considering doing this now. As I want to rewrite the console interface stuff #1048 and don't want to be writing new code in CoffeeScript.

@balupton balupton removed their assignment Apr 30, 2019
@balupton balupton changed the title Convert from CoffeeScript to JavaScript Convert from CoffeeScript to JavaScript to TypeScript Aug 5, 2020
@balupton
Copy link
Member Author

balupton commented Aug 31, 2020

Decaffeinate produces some weird output compared to manual conversions, mostly around class properties.

If anyone is willing to do this task as a volunteer, then DocPad maintenance can resume once it is done, as it would be enjoyable to use DocPad with all the modern ecosystem tooling around TypeScript.

However, until then, DocPad should still be considered archived with only official maintenance from Bevry for what Bevry considers critical bug fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment