I'm playing around with a new project, and so far I have it broken down into three main tasks:
compile -- prepares frontend resources, e.g. compiling JSX to javascript and SCSS to css.
build -- build the Go source code into an executable server.
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:
If a source for compile changes, run the task again. No need to restart serve.
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?
I'm playing around with a new project, and so far I have it broken down into three main tasks:
compile
-- prepares frontend resources, e.g. compiling JSX to javascript and SCSS to css.build
-- build the Go source code into an executable server.serve
-- run the built executable to begin serving requests. Bothcompile
andbuild
are defined asSeries
dependencies.Both
compile
andwatch
have their respective sources defined, and ideally I'd like to be able to have the following happen:compile
changes, run the task again. No need to restartserve
.build
changes, run the task again, then re-runserve
.The changes get picked up if I run
godo compile build --watch
, but not if I rungodo 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
.