-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Understanding the source code #97
Comments
Hi @fullofcaffeine, Unfortunately your timing to look into how haxe.io works is bad, as last weekend I had an issue which required me to rebuild all the plugins, but I unfortunately failed to keep the dependencies in check. Basically, you are extremely unlikely to build haxe.io with everything in its current state. If your interested in how it used to work and its current state, more in-depth detail below. How it used to work.The main program which handles all the file discovery is Tuli which consists of LibRunner.hx and Tuli.hx.
Tuli reads a config.json file located in the root directory, which lists the plugins needed to build the final static output. Tuli has a bunch of plugins included which are built as individual I won't go into detail on how each plugin works, but the basis is that each plugins entry point, usual
If any file content was read, it will be cached by Current refactorBecause of the issues I've had last weekend, I'm rebuilding each plugin as a separate, individual command line tool so no dependency on So far the If you have any other questions, I'll happy to answer them. |
Interesting, thanks for taking the time to explain. I now see it's a preprocessor/generator. I will close this one and wait for the updates. Maube this could be extracted into a generator web fw for Haxe, like Jekyll/Middleman is for Ruby? |
Yep, thats what Tuli was initial created for but its similar to metalsmith as it only handles loading plugins and files and then passing files around to those plugins. My problem came from the So Tuli works well enough to load plugins, pass files around and file creation, as long as each plugin follows this format shown between lines 17 and 24 and compiled to a I'll try and remember to post to this thread when things get more stable/usable 😄. |
Hey Skial,
I was curious about how the web app for Haxe.io was implemented and started digging the code. At first I thought uFront was used, but doesn't look like it.
But what called my attention was the Main.hx file. Why is its body almost all commented out?
The text was updated successfully, but these errors were encountered: