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: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.33.0- License
- MIT
- Author
- Mathieu Delacroix
- Target
spyfrom 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
- 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
Contributors
- Mathieu Delacroix - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 28, 2020
- Crystal
0.33.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Dlacreme/spy
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1