FileWatch ๐
Automatically run your commands each time you save a file.
Because TDD with mix test.watch is awesome๐
usage
Usage
prerequisites
Prerequisites
- On Linux you may need to install
inotify-tools
. - On Windows you need to install
inotifywait.exe
.
installation
Installation
# clone this repo
$ git clone https://github.com/pojiro/file_watch.git
$ cd file_watch
$ mix do escript.build, escript.install
# or
$ mix escript.install github pojiro/file_watch
# or
$ mix escript.install hex file_watch
# if you use asdf, after both of above don't forget to do
$ asdf reshim
get-config-template
Get config template
config template, .fwatch.exs, will be generated under CWD. configuration details are described in it.
$ fwatch --config-template
start-watch
Start watch
$ fwatch
acknowledgment
Acknowledgment
FileWatch uses or refs the following OSS and so on,
- uses FileSystem for detecting file has been touched
- refs mix test.watch for architecture
- refs Phoenix live-reload for debounce
other-info
Other Info
I didn't know about fswatch
until I developed FileWatch.
If FileWatch doesn't fit your needs, please check out fswatch
.
Copyright ยฉ 2022 Ryota Kinukawa