maid icon indicating copy to clipboard operation
maid copied to clipboard

Watch files

Open egoist opened this issue 6 years ago • 10 comments

## 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.

egoist avatar May 31 '18 16:05 egoist

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

flxwu avatar Jun 04 '18 08:06 flxwu

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

flxwu avatar Jun 04 '18 08:06 flxwu

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

egoist avatar Jun 04 '18 09:06 egoist

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

flxwu avatar Jun 04 '18 17:06 flxwu

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

flxwu avatar Jun 05 '18 17:06 flxwu

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

flxwu avatar Jun 05 '18 17:06 flxwu

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

zephraph avatar Jun 06 '18 02:06 zephraph

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`

intermundos avatar Aug 13 '18 15:08 intermundos

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

flxwu avatar Aug 13 '18 20:08 flxwu

@flxwu Thanks for the info.

intermundos avatar Aug 15 '18 15:08 intermundos