As some of you may know, OpenFL
recently added support for using the library with TypeScript and ES5/ES6 JavaScript as a library when targeting Javascript target for OpenFL.
http://www.openfl.org/blog/2018/01/16/openfl-7-release/
This is possible thanks to the project: https://github.com/kevinresol/hxgenjs
I’ve played around with hxgenjs
myself and it seems fairly trivial to convert Haxe libraries to Javascript this way. I was wondering if you could add official support for this in Armory3D.
I’m a contract software developer and it’d be much easier to convince my clients in the future to use Armory3D on projects instead of Three.js/Babylon.js if you added Typescript/Javascript support. This is because, for future maintainability of projects, it’s much easier for my clients to find Javascript/Typescript developers as Haxe is a niche language.
This could compile libraries to be used with both js/html5
or js/krom(v8)
targets. I believe it would just need the correct build tools / workflow setup. Particularly what would be nice is an NPM/Webpack compatible workflow like OpenFL currently has.
Examples of build.hxm
l files using hxgenjs
:
Let me know what you think, @lubos.
Thanks!