Groovy to Javascript converter

Grooscript is a groovy library that converts your groovy code to javascipt. At the moment, can do that conversion from a string or file or all groovy files in folder. The javascript code generated, needs grooscript.js to be executed, a file included in the jar that contains all javascript code needed to run converted code.


Be aware javascript isn't Java or Groovy, lot of differences between them. The main idea of this project is use Groovy strength in the browser, not create a full conversion. Use Groovy lists, maps, closures, Gstrings, beans, ... as many Groovy magic as possible. Only converting Groovy 2.0+ core, not support for groovy library around, as json, builders, ...


Current version: 0.4.5

GrooScript is an open source project, with only one developer at the moment. If you want to contribute some way, please contact me. After 40 hours week developing, all help is welcome, thank you 680 motivation clickers :) Every little thing helps a lot to continue developing in my free time.

Robots

Robots fighting in your browser. Code generated with a groovy dsl, and running in your browser with javascript.

Examples

Some examples of groovy code converted to javascript.

Documentation

Detailed info about the library, conversion options, language support, ...

Info

General info about the project.

Gradle plugin

Can do conversions, or launch conversion daemon from gradle tasks. First version launched, more info in github.

Grails plugin

Lot of options in this plugin to convert groovy code to javascript. That code will run in your browser reducing processing time in the server.

Node.js

Npm package to run your groovy generated code in Node.js applications.

Video

Old video showing grooscript in action as meteor. Using websockets with Vert.x to create a real time application.

News

2014 April 5th
New version 0.4.5 is out!
2014 March 30th
grooscript presentation slides at Greach 2014.
2014 March 29th
@jfrancoleza will talk about @grooscript in Cophenhague, GR8Conf Europe 2014 June 2-4
2014 February 22th
New version of Gradle plugin 0.2. Now can create an static web project using require.js from scratch.
2014 February 22th
New version 0.4.4
2014 February 3th
New version 0.4.3.
2014 January 14th
New look in this web :)
2014 January 09th
Grails plugin release 0.4
2014 January 08th
First version of Gradle plugin (0.1)

Coming next releases

What's new in 0.4.5

What's new in 0.4.4

What's new in 0.4.3

What's new in 0.4.1 and 0.4.2

What's new in 0.4

What's new in 0.3.3 and 0.3.4

What's new in 0.3.2

What's new in 0.3.1

What's new in 0.3

What's new in 0.2.4

What's new in 0.2.3

What's new in 0.2.2

What's new in 0.2.1

What's new in 0.2

@GrooScript 2014