kemal-watcher
Version, currently 0.1.716 versions
- 0.4.0latestJun 17, 2018
- 0.3.0not indexedJun 17, 2018
- 0.2.3not indexedJun 17, 2018
- 0.2.2not indexedJun 17, 2018
- 0.2.1not indexedJun 17, 2018
- 0.2.0not indexedJun 17, 2018
- 0.1.9not indexedJun 17, 2018
- 0.1.8not indexedJun 17, 2018
- 0.1.7not indexedJun 17, 2018
- 0.1.6not indexedJun 17, 2018
- 0.1.5not indexedJun 17, 2018
- 0.1.4not indexedJun 17, 2018
- 0.1.3not indexedJun 17, 2018
- 0.1.2not indexedJun 17, 2018
- 0.1.1not indexedJun 17, 2018
- 0.1.0not indexedJun 17, 2018
github.com/faustinoaq/kemal-watcher
Kemal plugin to watch files and live-reload the browser
20 stars
0 dependents
License: MIT
Nothing has been indexed for 0.1.7 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
kemal-watcher:
github: faustinoaq/kemal-watcher
version: ~> 0.1.7Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.7. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
# kemal-watcher
[](https://travis-ci.org/faustinoaq/kemal-watcher)
[Kemal](https://github.com/kemalcr/kemal) plugin to watch files like client stuff.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
kemal-watcher:
github: faustinoaq/kemal-watcher
```
## Usage
Add `Kemal.watch` to your Kemal app to watch files.
```crystal
require "kemal"
require "kemal-watcher"
get "/" do
File.read "src/views/index.html"
end
files = [
"public/*.js",
"public/*.html"
]
Kemal.watch(files)
Kemal.run
```
# How does it works?
`Kemal.watch` uses [watcher](https://github.com/faustinoaq/watcher) to watch files and add a new handler to Kemal that inject a script in the response. When a change is detected an event handler is executed and then send a reload signal to the clients.
## Contributing
1. Fork it ( https://github.com/faustinoaq/kemal-watcher/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
## Disclaimer
`Kemal.watch` is intended for use in a development environment.
## Contributors
- [faustinoaq](https://github.com/faustinoaq) Faustino Aguilar - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.7- Tagged
- Jun 17, 2018
- Commit
03377789108a- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/faustinoaq/kemal-watcher
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 16