dragome / gdx-dragome

Dragome backend for LibGDX.
22 stars 1 forks source link

Providing an example project #14

Open czyzby opened 8 years ago

czyzby commented 8 years ago

One should be able to compile and run this extension to test current functionalities. Workflow should be simple - gradle install to deploy the library into local Maven repository and use mvn jetty:run or a Gradle task (#3) to run the example project.

fpetrola commented 8 years ago

I've already pushed a minimal dragome web app example. Only required web libraries are included (using a custom DragomeConfigurator), to be able to build an app for dom handling. Also it includes the usage of dragome-maven-plugin for creating offline apps (js/html only apps).

czyzby commented 8 years ago

I'll translate the Maven-specific parts to Gradle and try compiling in my spare time.

fpetrola commented 8 years ago

Gradle support is working. I've moved standalone js generator to web module and I'm calling it from build.gradle:

task generateStandalone(type:JavaExec) {
   main = "com.dragome.web.helpers.serverside.StandaloneDragomeAppGenerator"
   classpath = sourceSets.main.runtimeClasspath
   args = [
   "./dist",
   "./webapp",
   "true",
   "true"
   ].toList()
}
czyzby commented 8 years ago

Dragome application will eventually be supported by the new gdx-setup application. "Example projects" could simply involve generating and running regular LibGDX projects with Dragome.