Hi,
The root directory of your haxelib gets added to the classpath when you use "-lib abc" with haxe. So you should put your classes in the root of the project - probably in a package/directory indicative of your project.
You will also need the "haxelib.json" file in the root directory to be able to submit it to haxelib.
If you have binary components, they will go in the root "ndll/Platform" directory.
If you want to have a script that get run when someone does "haxelib run yourlib", then it should be called "run.n" in your root directory.
The rest is up to you. It seems that the "project" directory is for source files used to produce the ndlls.
If you use this structure in git, then you can clone the repo and do "haxelib dev yourlib path/to/clone" and it will be like it's installed.
Hugh
I should add that the classpath directory only needs to be the same directory where haxelib.json is, but it doesn't have to be the root of your project. That is, you can put it inside a "src" folder in the repository, and that will contain both your "org" folder and your "haxelib.json" file.
Doing it this way will give you more freedom to add other stuff that are not part of the haxelib distribution package, such as a Readme.md, unit tests, or an ant script for building a distributable zip from the src folder.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.
I should add that the classpath directory only needs to be the same directory where haxelib.json is, but it doesn't have to be the root of your project. That is, you can put it inside a "src" folder in the repository, and that will contain both your "org" folder and your "haxelib.json" file.
Doing it this way will give you more freedom to add other stuff that are not part of the haxelib distribution package, such as a Readme.md, unit tests, or an ant script for building a distributable zip from the src folder.
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/groups/opt_out.