Simple script loader and compiler
This will load "js/main.js" when DOM is ready.
You may use
harvest() function to load sub-resources in "init.js" or "main.js"
These paths should be relative to script's root directory (data-path).
If you pass function as last argument, the callback will be called when all script is loaded.
But compiler doesn't support unifying the script with callback.
Compiler as grunt task will help you to concat or minify scripts.
grunt;// or// grunt.loadTasks("the/path/to/harvestjs/tasks");grunt;
falsenot to minify script)