Salânio
You can create local HaxeLib's as a way of packaging parts of a project,
specifically use the test option.
http://haxe.org/doc/haxelib/using_haxelib#testing-the-package
If you use github or similar you can put the code online.
http://haxe.org/doc/haxelib/using_haxelib#installing-a-library-from-git
If you currently use SVN or Hg then maybe better to move to git I did
add a feature to support them but needs more testing before it can be
merged.
Since Haxe code is not always target specific precompiled code like jars
and swc's are not as relevant.
But for specific targets you use pe-built code as target specific eg
ndll
jars
swcs/swf
js
for some types of code you write externs
http://haxe.org/doc/js/extern_libraries
for a few targets you can also use a lib compiler switch eg
-java-lib myjar.jar
-net-lib mydll.dll
-swf-lib myswf.swf
The haxe compile tries to cache compiled code not sure how complete but
on the c++ target the first compile is much slower than subsequent ones.
Flash target is so fast you never need to worry about putting stuff in
a swc/swf. The down side of cache is that it is not such a good idea to
have a test and live project although it is common to have more than one
hxml file.
One good approach to having a different builds is to use compiler switches.
http://haxe.org/ref/conditionals
Specifically -
"You can define your own variables by using the Haxe compiler
commandline options (for example using -D mydebug):"
So you code might have a debug version with a
-D debugMakeEasy
which you can then use in the code to make game play easier for testing
some aspects, and to make it easier to get to advanced level features.
#if debugMakeEasy
lives = 10000000;
bullets = 10000000;
health = 1000000;
#else
lives = 3;
bullets = 10000;
health = 10;
#end
For structures take a look at haxe.ds ( ds = datastructures ) and also
look at the Polygonal haxelib there is good documentation online.
For unit testing maybe try munit from massive interactive?
Not sure if that answers all your questions but maybe some useful ideas,
and others may decide to clarify further some aspects, or correct
details, but it's late here so should give you some ideas to explore.
Best Justin
Salânio Júnior: