Skip to content

Instantly share code, notes, and snippets.

@chiquitinxx
Last active August 29, 2015 14:01
Show Gist options
  • Save chiquitinxx/19ea29b6bf35ce4cf04d to your computer and use it in GitHub Desktop.
Save chiquitinxx/19ea29b6bf35ce4cf04d to your computer and use it in GitHub Desktop.
Convert groovy file to javascript
@GrabConfig(systemClassLoader=true)
@Grab('org.grooscript:grooscript:0.5.1')
import org.grooscript.GrooScript
GrooScript.setConversionProperty(GrooScript.INITIAL_TEXT_OPTION, "var gs = require('grooscript');")
GrooScript.convert('run.groovy', '.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment