guard-coffeescript question

40 views
Skip to first unread message

Jake Smith

unread,
Mar 2, 2013, 4:53:39 PM3/2/13
to guar...@googlegroups.com
I'm using guard-coffeescript to automatically compile my .coffee files as part of a team project. However, the version of ruby-coffee-script being used to compile the files is creating slightly different output than the members of my team who are using `coffee --watch`, so we're getting really wonky git diffs for the javascript files. Is there any way to specify which version of coffeescript to use, or should I just lose guard-coffeescript and run guard and coffee --watch simultaneously? Thanks!

Jake

Michael Kessler

unread,
Mar 3, 2013, 4:43:03 AM3/3/13
to guar...@googlegroups.com
Jake,

ruby-coffee-script depends on coffee-script-source version >= 0, so you are able to chose the version by adding e.g.

gem "coffee-script-source", "~> 1.4.0"

to your Gemfile. In case your team is using CoffeeScriptRedux as compiler, I monkey patched ruby-coffee-script for Redux (https://github.com/netzpirat/ruby-coffee-script-redux), but the compiler is outdated and needs to be updated to the latest beat version.

Michael

On 02.03.2013, at 22:53, Jake Smith <jacobt...@gmail.com> wrote:

> I'm using guard-coffeescript to automatically compile my .coffee files as part of a team project. However, the version of ruby-coffee-script being used to compile the files is creating slightly different output than the members of my team who are using `coffee --watch`, so we're getting really wonky git diffs for the javascript files. Is there any way to specify which version of coffeescript to use, or should I just lose guard-coffeescript and run guard and coffee --watch simultaneously? Thanks!
>
> Jake
>
> --
> You received this message because you are subscribed to the Google Groups "guard-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to guard-dev+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Jake Smith

unread,
Mar 3, 2013, 10:35:10 PM3/3/13
to guar...@googlegroups.com
Thanks. That worked to set it to the right version, but it looks like it's still removing the line

// Generated by CoffeeScript 1.3.3

as well as some of the return statements. Thanks though!

--
Jake Smith

Attachments:
- smime.p7s

Reply all
Reply to author
Forward
0 new messages