CoffeeScript compilation

What’s the state of the CoffeeScript compilation? I can see that there’s some form of support in 1.3, but there’s no documentation or examples.

It’s WIP and not public. It will be documented and made @Incubating in an upcoming release.

If you are feeling brave, you can use the test case (https://github.com/gradle/gradle/blob/master/subprojects/javascript/src/integTest/groovy/org/gradle/plugins/javascript/coffeescript/CoffeeScriptBasePluginIntegrationTest.groovy) as documentation on how to use it.

It is important to me that the eventual CoffeeScript compiler support the ability to set compilation options (in my case, --bare).

In addition, it would be very nice to support source sets properly, so that I could feed multiple source directories into the task, and produce a single output directory.

Sorry, that came out a bit brusque.

Hi Howard,

No doubt that we need to support compiler options. How about submitting a pull request? :slight_smile:

Would need to expose this here: https://github.com/gradle/gradle/blob/master/subprojects/javascript/src/main/groovy/org/gradle/plugins/javascript/coffeescript/CoffeeScriptCompileOptions.java

And then wire it into the actual compile here: https://github.com/gradle/gradle/blob/master/subprojects/javascript/src/main/groovy/org/gradle/plugins/javascript/coffeescript/compile/internal/rhino/CoffeeScriptCompilerWorker.java