Hot reload on any application
# Download the binary
$ wget https://github.com/Dlacreme/spy/raw/master/dist/spy && chmod +x spy
# (optional) Download a default config file (spy.yml). See `usage` for more information
$ wget https://github.com/Dlacreme/spy/raw/master/spy.yml
# Run
$ ./spy
$ git clone https://github.com/dlacreme/spy.git && cd spy
$ crystal build ./src/spy.cr --release
$ cp spy && spy.yml /path/to/your/project
$ cd /path/to/your/project
$ ./spy
Create a spy.yml
file at the root of your project:
# spy.yml
target: ./src/
once:
# commands executed before watching files
- build.sh
- start_server.sh
always:
# commands executed everytime a file is updated
- build.sh
Then simply run spy
$ spy
- Fork it (https://github.com/dlacreme/spy/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Mathieu Delacroix - creator and maintainer