Multiple output paths

24 views
Skip to first unread message

Ankit Dhingra

unread,
May 10, 2013, 12:23:05 AM5/10/13
to guar...@googlegroups.com
Hi,

I was wondering if there was a straightforward way to use guard-coffeescript to have it compile coffee files get compiled to two separate output folder with one single command.

eg: Right now I have the following configuration,

   guard :coffeescript, :input => 'src/main/coffeescript', :output => 'src/main/webapp/javascripts'
   guard :coffeescript, :input => 'src/main/coffeescript', :output => 'target/web/javascripts'

Is there anyway in which I can call the coffee compile only once?


Regards,
Ankit.

Thibaud Guillaume-Gentil

unread,
May 10, 2013, 2:46:02 AM5/10/13
to guar...@googlegroups.com
Hi Ankit,

I don't think so, please open an issue on guard-coffeescript.

Thanks!
Thibaud
> --
> 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.
>
>

Michael Kessler

unread,
May 10, 2013, 4:12:47 AM5/10/13
to guar...@googlegroups.com
Ankit,

Thibaud is right, it's not supported currently. If you like to add support for multiple output paths, you need to extend only one method: https://github.com/guard/guard-coffeescript/blob/master/lib/guard/coffeescript/runner.rb#L191-L208

Feel free to send a pull request :P

Michael
Reply all
Reply to author
Forward
0 new messages