gdx-dragome icon indicating copy to clipboard operation
gdx-dragome copied to clipboard

Providing an example project

Open czyzby opened this issue 8 years ago • 4 comments

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.

czyzby avatar Mar 06 '16 14:03 czyzby

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

fpetrola avatar Mar 10 '16 03:03 fpetrola

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

czyzby avatar Mar 10 '16 11:03 czyzby

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()
}

fpetrola avatar Apr 03 '16 20:04 fpetrola

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.

czyzby avatar May 05 '16 12:05 czyzby