jbitor / issues

GitHub Issues for jbitor.
https://github.com/jbitor/issues/issues
0 stars 0 forks source link

Closure Compiler #5

Closed banksJeremy closed 10 years ago

banksJeremy commented 10 years ago

Is there a convenient way to use Google closure compiler with Go? It might be nice to try.

banksJeremy commented 10 years ago

soheilhy/glosure is a 13-day old library in this direction.

banksJeremy commented 10 years ago

This seems to work alright, see jbitor/webclient@f409a17 (and jbitor/jbitor@476ac27), but Java 7 is a really tough dependency to accept. This library doesn't have a nice built-in way to detect that it's missing and fall-back, so I'd have some work to do if I wanted to make it an enhancement, rather than a requirement.

It's not worth it, particularly given that we're not doing anything too complicated with JavaScript.

soheilhy commented 10 years ago

@jeremybanks Glosure had support for the closure REST API, but I didn't expose it in the initial version. I just pushed a version that can use the closure REST API instead of the jar file. You can set cc.UseClosureApi = true to make sure the code does not use Java.

banksJeremy commented 10 years ago

@soheilhy Wow, thanks for the quick enhancement. I'll check it out. :)