Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chemzqm/tiny-watch
start livereload server and file watch
https://github.com/chemzqm/tiny-watch
Last synced: about 1 month ago
JSON representation
start livereload server and file watch
- Host: GitHub
- URL: https://github.com/chemzqm/tiny-watch
- Owner: chemzqm
- Created: 2014-05-29T08:05:12.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-31T08:47:11.000Z (over 10 years ago)
- Last Synced: 2024-11-07T01:16:04.362Z (about 2 months ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
#tiny-watch
Start livereload server and watch for specified file changes.
* growl notification
* timestamp
* glob files## Install
npm install tiny-watch
## Usage
```
Usage: tiny-watch *.js *.html *.css *.phpOptions:
-h, --help output usage information
-V, --version output the version number
```## Script
you need to add livereload script to html by you own.
``` html
document.write('<script src="http://'
+ (location.host || 'localhost').split(':')[0]
+ ':35729/livereload.js?snipver=1"><\/script>')
```## Licence
MIT