node-task / spec

A specification for javascript tasks.
MIT License
153 stars 2 forks source link

make *almost everything* optional #9

Closed millermedeiros closed 11 years ago

millermedeiros commented 11 years ago

for me it seems unnecessary to ask for that many properties. I would like the runner to work even with the user doesn't provide name, version, options, description, on, off... only thing that I think that should be required is the method run.

tkellen commented 11 years ago

I can agree with that. I've made almost everything optional, but I'm still requiring the inclusion of on/off/emit in the spec for now. That might go optional too, but I want to talk with a few more people about it first.

tkellen commented 11 years ago

We're going to stick with making tasks inherit EventEmitter functionality for consistency. At the moment, the only required properties for a basic task to work with a runner are on/off/emit/run. I hope that's a good enough compromise.