by chiquitinxx

chiquitinxx / grooscript

Converts your Groovy code to Javascript

209 Stars 16 Forks Last release: almost 7 years ago (v0.6.2) Other 723 Commits 31 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

:project-name: grooscript :project-full-path: chiquitinxx/grooscript :github-branch: master :release-date: 12-09-2016 :current-version: 1.3.0 :next-version: 1.3.1-SNAPSHOT

image:{project-full-path}.svg?branch={github-branch}["Build Status", link="{project-full-path}"] image:{github-branch}["Coverage Status", link="{github-branch}"] image:["Maven Central Version", link="|ga|1|a%3A%22grooscript%22"]

== grooscript

Converts your Groovy or Java code to JavaScript(Groovy 2.x to Javascript ECMAScript 5). You need groovy jar greater than 2.0 to make conversions. For more information about the project, see[]

Not a full groovy to javascript conversion. Some groovy and java features not supported, check link:[documentation] for more info. Converted code, needs link:{project-full-path}/blob/master/src/main/resources/META-INF/resources/grooscript.js[grooscript.js] to run. grooscript.js inside the jar in META-INF/resources for servlet 3.0 support. Also a Node.js link:[npm] module imports it.

Try online conversions link:[here]. Can convert .java and .groovy files or a text fragment as:




import org.grooscript.GrooScript

def result = GrooScript.convert ''' def sayHello = { println "Hello ${it}!" } ['Groovy','JavaScript','GrooScript'].each sayHello'''

println result

== Latest Versions

The latest release version is {current-version}, released on {release-date}. The current development version is {next-version}.

Releases are available from link:[Maven Central] and link:[Bintray].

== Build

Using gradle wrapper, only Groovy dependencies in the project. You need JDK 1.7+ to build and test the project.

First time, you have to install Node.js stuff, maybe you have to run as administrator, do it with:

./gradlew npmInstall

Create IntelliJ IDEA project:

./gradlew idea

Test project:

./gradlew test

Build project:

./gradlew build

== Tools

Grails 2 link:[plugin]

Grails 3 link:[plugin]

Gradle link:[plugin]

Npmjs link:[package]

== Demos

Browser and node.js link:[demos]

Spring boot and gradle plugin in this link:[books] demo

Grails 3 websockets link:[circles] demo

Grails 3.1 with gradle and grails plugins in link:[action]

== License

Grooscript licensed under the terms of the link:[Apache License, Version 2.0]

== Contributors

  • Jorge Franco
  • Serge Tarkovski
  • Abel Salgado
  • Alberto Navarrete
  • Jonatas Emidio
  • yellowsnow
  • ulrichenslin
  • Lourens van Heerden
  • Ruaan van der Spuy

== Contact

Twitter: link:[@grooscript]

Email: mailto:[email protected][]

grooscript channel in link:[Apache Groovy Community Slack]

Please all feedback welcome, thank you!

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.