Khaled Garbaya

Engineering Leader, Software Developer & Educator

Introducing Duell tool a better build tool for haxe

Finally I can talk about one of the exciting projects we have been working on at Gameduell, the duell tool which was announced today at the WWX 2015 Haxe conference in Paris by my colleagues Sven Otto and Rui Campos. In this article I will try to cover every aspect of this awesome tool.

What is the Duell Tool?

The Duell Tool is a command line tool for setting up, building and running applications on any platform. It can also be used for other general tasks within app development. It is made in a modular way via plugins, and each plugin is separate from the tool itself. The tool merges the needed plugin on execution. Duell has three main plugin types Build, Setup and Create plugins.

a more in detail article here

Build Plugins

A build plugin is simply a separate repo responsible of building to a specific platform/target for example flash, ios , android, html5 etc... Usually the repo name will be "duellbuildtarget". When you run in the command line the following

1$duell build [flash|ios|android|html5…any] 2

one of the things the tool will look for is a repowith the name "duellbuildtarget" in the repo list (more details later) for example "duellbuildios" update it if it needs so and run it. This guaranties extensibility in a clean way and each plugin can be maintained and updated without affecting other parts of the tool.

The duell tool provides already 4 build plugins.

Setup plugins

As you may know every platform you want to build to require sometimes a specific setup. Something like installing a SDK , a plugin or a build tool. Also platforms often changes so the plugin needs to be up to date and easy to maintain that's exactly what duell offers .

Here is a basic usage :

1$ duell setup [mac|android|flash|…any] -v 2.0.0 2

The tool will look for a repo with the name "duellsetupplatform" for example "duellsetupmac" get the specified version and execute it.

The duell tool provides already 3 setup plugins.

Create Plugins

Sometimes you have a specific setup/project that you want to save somewhere as a template and you want an easy thing to access it, duell offers a nice create plugin for that.

Here is a basic usage :

1$ duell create [emptyProject|…any] 2

duell will fetch a repo list for a repo named "duellcreatesomething" for example "duellcreateemptyProject" pull/update it and excute, in this case the "duellcreateemptyProject" plugin will copy a temple empty project to your folder.

The duell tool provides already 3 create plugins.

Next one in your inbox

no spam only content