Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "wtch", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "small livereload/watch command line utility", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,14 +14,10 @@ # wtch | ||
Particularly useful alongside tools like [wzrd](https://github.com/maxogden/wzrd). | ||
You can use [garnish](https://github.com/mattdesl/garnish) for pretty-printing logs. | ||
```js | ||
wzrd index.js | wtch | ||
wtch --verbose | garnish | ||
``` | ||
With options, and using [garnish](https://github.com/mattdesl/garnish) for pretty-printing. | ||
See [examples](#examples) for use with browserify and other tools. | ||
```js | ||
wzrd test/index.js | wtch --dir test -e js,css,es6 | garnish | ||
``` | ||
PRs/suggestions welcome. | ||
@@ -60,4 +56,18 @@ | ||
## Examples | ||
This can be used for live-reloading alongside [wzrd](https://github.com/maxogden/wzrd), [beefy](https://github.com/maxogden/beefy) and similar bundlers. For example: | ||
```sh | ||
wzrd test/index.js | wtch --dir test -e js,css,es6 | garnish | ||
``` | ||
Or, even for a simple site with no JS content. The following example uses [http-server](https://www.npmjs.com/package/http-server) and listens for HTML/CSS changes in the current directory. | ||
```sh | ||
http-server -o -p 8000 | wtch --verbose | garnish | ||
``` | ||
## License | ||
MIT, see [LICENSE.md](http://github.com/mattdesl/wtch/blob/master/LICENSE.md) for details. |
7020
72