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.5.3

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.

First steps

Guide to introduce grooscript using gradle plugin.

Games

Robots fighting in your browser. 2048 game. Github

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. Starting guide.

Grails plugin

New grooscript plugin from version 0.5 with grails 2.4+. Old grooscript vert.x plugin deprecated.

Node.js

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

Video

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

Conversions

Try online conversions of groovy code to javascript code. Javascript code is executed and evaluated in the server.

Downloads

Download jar or .js files.

Roadmap

Take a look at the future of grooscript.

News

2014 Aug 17th
Version 0.5.3
2014 Aug 6th
Node.js support example.
2014 Aug 2th
Ratpack application using grooscript gradle plugin. [+info]
2014 Jul 26th
Grails plugin version 0.6, for grails 2.4 and with websockets support.
2014 Jul 14th
Version 0.5.2
2014 Jul 4st
Jorge Franco talking about grooscript at Gr8Conf. This guy needs to improve english :)
2014 Jul 1st
Gradle plugin 0.4. Using Gradle 2.0.
2014 Jun 10th
Added roadmap info and slides of grooscript talk at Gr8Conf copenhagen.
2014 May 29th
Version 0.5.1
2014 May 20th
Create a DSL to create a webserver application on top of Node.js using express
2014 May 8th
New version of Gradle plugin 0.3.
2014 May 7th
New version 0.5 is out. Traits supported!
2014 April 25th
Can do online conversions again.
2014 April 8th
Gradle plugin 0.2.1
2014 April 5th
Version 0.4.5
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
Version of Gradle plugin 0.2. Now can create an static web project using require.js from scratch.
2014 February 22th
Version 0.4.4
2014 February 3th
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.5.3

What's new in 0.5.2

What's new in 0.5.1

What's new in 0.5

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