spy

Version, currently master branch1 version
  • master branchlatestSep 28, 2020

github.com/Dlacreme/spy

Fast and light hot reload on any application using inotify (7) and C bindings

3 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  spy:
    github: Dlacreme/spy
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.33.0
License
MIT
Author
Mathieu Delacroix
Target
  • spy from src/spy.cr

Dependencies

This version declares no dependencies.

README

Spy

Hot reload on any application

Install

Direct download

# 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

From source

$ 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

Usage

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

Contributing

  1. Fork it (https://github.com/dlacreme/spy/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors