Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deraen/boot-livereload
Provides LiveReload.js compatible server as Boot task
https://github.com/deraen/boot-livereload
Last synced: 2 days ago
JSON representation
Provides LiveReload.js compatible server as Boot task
- Host: GitHub
- URL: https://github.com/deraen/boot-livereload
- Owner: Deraen
- License: other
- Created: 2015-06-14T14:08:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T15:48:45.000Z (almost 7 years ago)
- Last Synced: 2024-07-10T15:02:47.487Z (3 months ago)
- Language: Clojure
- Homepage:
- Size: 13.7 KB
- Stars: 11
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# boot-livereload
[![Clojars Project](http://clojars.org/deraen/boot-livereload/latest-version.svg)](http://clojars.org/deraen/boot-livereload)[Boot](https://github.com/boot-clj/boot) task to create a [LiveReload.js](http://livereload.com/) server. Automatically injects client JS to HTML files.
This works well with static page generators such as [Perun](https://github.com/hashobject/perun).
For use with ClojureScript apps, you should be looking at [boot-reload](https://github.com/adzerk-oss/boot-reload)
instead.* Provides the `livereload` task
* Doesn't provide HTTP server to serve your files, instead compose with another Boot task, like [boot-alt-http](https://github.com/metosin/boot-alt-http)## Usage
```bash
$ boot livereload --help
```### Dynamically served HTML file
If your HTML file is not in the fileset, the task can't automatically inject the JS code to page. In this case you should use the default port (35729) for Livereload server and either 1) use [browser extensions](http://livereload.com/extensions/), 2) [add JS manually](http://feedback.livereload.com/knowledgebase/articles/86180-how-do-i-add-the-script-tag-manually).
## License
Copyright © 2015-2017 Juho Teperi
Distributed under the MIT License.