go-godo / godo

golang build tool in the spirt of rake, gulp
MIT License
536 stars 31 forks source link

Any way to watch sources recursively? #35

Open dradtke opened 9 years ago

dradtke commented 9 years ago

I'm playing around with a new project, and so far I have it broken down into three main tasks:

  1. compile -- prepares frontend resources, e.g. compiling JSX to javascript and SCSS to css.
  2. build -- build the Go source code into an executable server.
  3. serve -- run the built executable to begin serving requests. Both compile and build are defined as Series dependencies.

Both compile and watch have their respective sources defined, and ideally I'd like to be able to have the following happen:

  1. If a source for compile changes, run the task again. No need to restart serve.
  2. If a source for build changes, run the task again, then re-run serve.

The changes get picked up if I run godo compile build --watch, but not if I run godo serve --watch. Is there any way to get the workflow that I'm looking for currently, or would this require additional configuration options to be implemented?

This is with the latest gopkg.in/godo.v2.