Jump to content

Grooscript

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Postcard Cathy (talk | contribs) at 19:58, 23 May 2017 (Citations). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Grooscript
Paradigmscripting
Designed byJorge Franco
DeveloperJorge Franco
Abel Salgado Romero
First appeared2013; 12 years ago (2013)
Stable release
1.3.0 / September 12, 2016; 8 years ago (2016-09-12)
Typing disciplineDynamic
LicenseApache 2.0
Filename extensions.groovy
Websitegrooscript.org
Influenced by
Apache Groovy, Java, JavaScript

Grooscript is a library that converts Apache Groovy code to JavaScript code. grooscript-x.y.z.jar is required to convert the Groovy code to Javascript, and grooscript.js is needed to run the generated code.[1]

Although Grooscript has some limitations compared to Apache Groovy, it can use domain classes in both the server and the client. A typical development process is to create a dynamic single webpage application in Groovy, test its various parts with Spock, and use web sockets to speed up page reloading on the fly.[2]

Features

Most valid Groovy files that will compile in Apache Groovy will convert to JavaScript using Grooscript. Setting up the conversion environment is as simple as putting

compile 'org.grooscript:grooscript:1.3.0', {
    exclude module: "groovy"
}

in the Gradle build file.

Plugin support for Grails version 3.0 is provided, as well as online code conversions.[3]

References

Citations

  1. ^ "Grooscript Documentation". 12 Sep 2016.
  2. ^ "Presentation at SpringOne/2GX on Grooscript". 13 Dec 2015.
  3. ^ "Grooscript online conversions". 15 May 2017.