{"action":"created","issue":{"url":"https://api.github.com/repos/n1k0/casperjs/issues/1203","labels_url":"https://api.github.com/repos/n1k0/casperjs/issues/1203/labels{/name}","comments_url":"https://api.github.com/repos/n1k0/casperjs/issues/1203/comments","events_url":"https://api.github.com/repos/n1k0/casperjs/issues/1203/events","html_url":"https://github.com/n1k0/casperjs/issues/1203","id":65936079,"number":1203,"title":"Keep Support For Coffeescript With PhantomJS 2.0","user":{"login":"timscott","id":118409,"avatar_url":"https://avatars.githubusercontent.com/u/118409?v=3","gravatar_id":"","url":"https://api.github.com/users/timscott","html_url":"https://github.com/timscott","followers_url":"https://api.github.com/users/timscott/followers","following_url":"https://api.github.com/users/timscott/following{/other_user}","gists_url":"https://api.github.com/users/timscott/gists{/gist_id}","starred_url":"https://api.github.com/users/timscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timscott/subscriptions","organizations_url":"https://api.github.com/users/timscott/orgs","repos_url":"https://api.github.com/users/timscott/repos","events_url":"https://api.github.com/users/timscott/events{/privacy}","received_events_url":"https://api.github.com/users/timscott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-02T14:14:05Z","updated_at":"2015-04-03T19:14:27Z","closed_at":null,"body":"To my horror, PhantomJS 1.9 stopped working for me on a certain website. To my delight, PhantomJS 2.0 fixes it. But then to my horror again, apparently PhantomJS has dropped support for Coffeescript.\r\n\r\nhttps://github.com/ariya/phantomjs/issues/12410\r\n\r\nIt seems my choices are:\r\n\r\n 1. Add add a compile step (with cake, I guess) on deployment. In development, manually compile after every code change (ouch!).\r\n 2. Convert my thousands of lines of existing Coffeescript to JS, and leave Coffeescript behind (double ouch!).\r\n\r\nI guess there is a third choice: somehow compile at runtime. I guess I can find a way to do this in my app before calling CasperJS. However, I wonder if there is way to add this step to CasperJS. It would invoke whenever the file is Coffescript and PhantomJS is >= 2.0.\r\n\r\nIs that is possible? Is it desired? If desired, where would the code go? I'm guessing somewhere around [here](https://github.com/n1k0/casperjs/blob/master/bin/bootstrap.js#L127)?\r\n\r\nI would be willing to take this on if it's desired. I must solve it for myself asap."},"comment":{"url":"https://api.github.com/repos/n1k0/casperjs/issues/comments/89394277","html_url":"https://github.com/n1k0/casperjs/issues/1203#issuecomment-89394277","issue_url":"https://api.github.com/repos/n1k0/casperjs/issues/1203","id":89394277,"user":{"login":"timscott","id":118409,"avatar_url":"https://avatars.githubusercontent.com/u/118409?v=3","gravatar_id":"","url":"https://api.github.com/users/timscott","html_url":"https://github.com/timscott","followers_url":"https://api.github.com/users/timscott/followers","following_url":"https://api.github.com/users/timscott/following{/other_user}","gists_url":"https://api.github.com/users/timscott/gists{/gist_id}","starred_url":"https://api.github.com/users/timscott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timscott/subscriptions","organizations_url":"https://api.github.com/users/timscott/orgs","repos_url":"https://api.github.com/users/timscott/repos","events_url":"https://api.github.com/users/timscott/events{/privacy}","received_events_url":"https://api.github.com/users/timscott/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T19:14:27Z","updated_at":"2015-04-03T19:14:27Z","body":"I'm running CasperJS from a Ruby on Rails app. It turns out to be pretty easy because the ```coffee-rails``` gem gives me ```CoffeeScript.compile``` (via the ```ruby-coffee-script``` gem).\r\n\r\nI created a little runtime build system that compiles the script and all possible dependencies just before it's executed. It build only once in production and every time in other environments.\r\n\r\nIt solves my issue nicely, but it would be even nicer if CasperJS would handle it. The most valuable coding work is done with the delete key!"}}