lukeed / taskr

A fast, concurrency-focused task automation tool.
MIT License
2.53k stars 74 forks source link

How to create a plugin contains multiple sub-methods ? #183

Closed frantic1048 closed 8 years ago

frantic1048 commented 8 years ago

I'm trying to transplant gulp-connect to fly, it uses different methods to control server behavior: start, reload and close.

In gulp, they use connect.server(), connect.reload() to call different methods.

In fly documentation, it didn't mention about a plugin other than a single function. How could I achieve similar behavior in fly ?

Or, I should just put these start/reload/close methods in plugin argument, like .connect({method: 'start', options: {...}}) ?

frantic1048 commented 8 years ago

I just took a look at fly-kit-web and browser-sync . It looks directly usage is fine, may I don't have to wrap such tool as a plugin ?

lukeed commented 8 years ago

Nope, I've been using browserSync for months now & haven't lacked anything.

frantic1048 commented 8 years ago

Great! Now I'm clear what to use. This issue seems not so necessary now.