mklabs/cakes — Issue #5: tasks should be split across multiple files / modules
Author: mklabs
Created: 2011-10-13 11:59:36+00:00
State: open

* Tasks may be created using different modules (css, js, html, img, ...)
* A module defines a set of tasks
* A task is simply a function of the form
* `exports.task = function(options, em) {}`
* tasks needs a name/description: name is the fn name, description could be attached to the fn (eg. `exports.task.description`).

modules would be autoloaded at runtime. The cake script could automatically load modules in a `tasks/` folder or something.

probably, a simpler way of doing this would be to rely on vm.createInContext stuff to autoload modules in `tasks/` and still use the same cake syntax.

doing this may also allow the use of regular `.js` files instead of `.coffee`. Both should work.