A Wrapper of a command to watch any changes in filesystem
A Wrapper of a command to watch any changes in filesystem, then re-run the command again. Especially, when you are developing a backend API, you need to run again your API very often, every time you edit a code. GW
will automatically run your API again for you.
$ gw [COMMAND arg1, arg2, ...]
e.g.
$ gw go run server.go
** Ctrl-C to exit **
2019/05/12 00:01:00 Listening to the port 8080...
# any changes in filesystem
Tyring to run the command...
2019/05/12 00:01:10 Listening to the port 8080...
You can use gw instead of nodemon
.
$ gw node server.js
** Ctrl-C to exit **
Listening to port 4000
# any changes in filesystem
Tyring to run the command...
Listening to port 4000
gw excludes to watch the
node_modules
directory.
$ brew install mattdamon108/tools/gw
go get
$ go get -u github.com/mattdamon108/gw
$ git clone https://github.com/mattdamon108/gw.git
$ go install