egoist / maid

Markdown driven task runner.
MIT License
2.02k stars 35 forks source link

Watch files #9

Open egoist opened 6 years ago

egoist commented 6 years ago
## watch

Run task `build` and watch `src/*.js`

Or

## watch

Run task `build` before this and watch `src/*.js`

A new command for running task and rerun it when watched files are changed.

`before this` will be be optional since that will be a default.

flxwu commented 6 years ago

@egoist I'd like to try my best on this :) Or did you already start?

flxwu commented 6 years ago

Expressions like "Run task build before this in parallel and watch ..." should be possible as well right

egoist commented 6 years ago

yep they can be combined, let's wait for #23 to land first

flxwu commented 6 years ago

:+1: This feature would be really useful for myself

flxwu commented 6 years ago

okay, @egoist I have a first working version. Should I still wait for #23?

flxwu commented 6 years ago

And further, how should we determine when to stop the watcher?

zephraph commented 6 years ago

I updated the docs for #23 so that should be ready to merge.

intermundos commented 6 years ago

Does this feature work yet?

I try to run watch task, but get an error:

No task called "*.js" was found. Stop.

## js
JS task with console.log('hola maid!')

console.log('11')

## watch
Watch test task
Run task `js` before this watch `*.js`
flxwu commented 6 years ago

No @intermundos as @egoist still has to review&merge #33 :)

intermundos commented 6 years ago

@flxwu Thanks for the info.