I’ve created a small plugin for Titanium Mobile which will scan your Resources/
folder (and sub-folders) at build time and, if it finds any CoffeeScript .coffee
files, will run the coffee
compiler on them to produce the .js
files. Since build plugins run before the platform-specific build system kicks in, this actually works.
Find the project on GitHub at:
https://github.com/billdawson/ti_coffee_plugin
The README includes installation information. The short video below shows examples of installation and use.
NOTE: This is not an official Appcelerator project or utility. Do not request support from Appcelerator. Instead, feel free to file a ticket in the Issues section of the GitHub project, and I’ll try my best to respond in a timely fashion.
Thank you, Mathieu.
No, I haven’t considered that, and probably won’t. But it’s a great reason for someone to fork! 🙂
Thanks, this is seriously cool !
I imagine that is a stretch and probably not possible to implement simply as a Titanium plugin, but have you examined the required changes to support a line number mapping between the Coffeescript and Javascript sources ?
Comments on this entry are closed.