My issue began after finding that the version on the website was highly out of date. I was looking to use OmniGrid alongside MochaUI, but the latest released version is mochaui-0.9.7.
It turns out each MooTools component contains a "package.yml" YAML file which is fed to a PHP script called "Packager." Package simply concatenates the source files listed in the manifest (package.yml) together. So much for "building" the JS :/.
Here's the complete steps to produce a "mochaui.js" file from github.
First, clone the MochaUI codebase & cd to the new directory:
Next, I had to modify the "package.yml" file to point to the correct sources directory. The original was incorrect, containing the wrong path & core files. Note: You must have the source files listed in this exact order, lest nothing will work properly.
My new "package.yml" file looked like so:
Next, I proceded the use the same steps above to clone Packager from: git://github.com/kamicane/packager.
Once cd'ed into my packager directory, I ensured that I had PHP installed. That's an entirely different subject, but if you have access to the "php" command, enter the PHP interactive shell with the command "php -a"
Once in the interactive shell, we need to include the "packager.php" file with the require_once() method. Once PHP knows about the Packager class, we can create a new instance.
As per the git's documentation (https://github.com/kamicane/packager), we can see that the constructor to the Packager instance is simply the path to the "package.yml" manifest file. In my case, this is simply the parent directory. Next, the write_from_files() method takes two parameters, but we really only need to know about the first. This is the output file name. Considering we are building the "mochaui.js" file, that's what the parameter will be.
After exiting the PHP shell, your Packager should now contain the fully "built" mochaui.js file.
Hopefully that'll save you some time & research :).