This commit is contained in:
Kyle Robinson Young 2018-04-20 15:26:44 -07:00
parent 7d2093370b
commit 6ec71e92de
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
v1.0.1:
date: 2018-04-20
changes:
- Update to `gaze@1.1`, `lodash@4`
v1.0.0: v1.0.0:
date: 2016-03-12 date: 2016-03-12
changes: changes:

View File

@ -1,4 +1,4 @@
# grunt-contrib-watch v1.0.0 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-watch.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-watch) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/olyu3uhcq59avm8v/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-watch/branch/master) # grunt-contrib-watch v1.0.1 [![Build Status: Linux](https://travis-ci.org/gruntjs/grunt-contrib-watch.svg?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-watch) [![Build Status: Windows](https://ci.appveyor.com/api/projects/status/olyu3uhcq59avm8v/branch/master?svg=true)](https://ci.appveyor.com/project/gruntjs/grunt-contrib-watch/branch/master)
> Run predefined tasks whenever watched file patterns are added, changed or deleted > Run predefined tasks whenever watched file patterns are added, changed or deleted
@ -478,11 +478,12 @@ Spawning does cause a performance hit (usually 500ms for most environments). It
#### How can I have the browser reload for files listed in a task? #### How can I have the browser reload for files listed in a task?
Instead of restarting your server each time a static file is changed, start a static web server using (grunt-contrib-connect)[https://github.com/gruntjs/grunt-contrib-connect]. Instead of restarting your server each time a static file is changed, start a static web server using (grunt-contrib-connect)[https://github.com/gruntjs/grunt-contrib-connect].
You'll have the `connect` web server on separate port ex: port 9000 from your main server. When the 'livereload' option is enabled for 'watch' tasks, it will handle triggering the live reload server for each tasks and when files are modified, which then server back to main server ex: 3000. The main server must include a script tag or a browser extension to the livereload server in order for the browser automatically. You'll have the `connect` web server on seperate port ex: port 9000 from your main server. When the 'livereload' option is enabled for 'watch' tasks, it will handle triggerring the live reload server for each tasks and when files are modified, which then server back to main server ex: 3000. The main server must include a script tag or a browser extension to the livereload server in order for the browser automatically.
## Release History ## Release History
* 2018-04-20v1.0.1Update to `gaze@1.1`, `lodash@4`
* 2016-03-12v1.0.0Updated tiny-lr, gaze, async and lodash dependencies. Fix endless loop issue with `atBegin`/`nospawn`. Expose hostname parameter of tiny-lr. Support `cwd.event` to emit events relative to path. Removed peerDependencies setting. * 2016-03-12v1.0.0Updated tiny-lr, gaze, async and lodash dependencies. Fix endless loop issue with `atBegin`/`nospawn`. Expose hostname parameter of tiny-lr. Support `cwd.event` to emit events relative to path. Removed peerDependencies setting.
* 2014-03-19v0.6.1Fix for watch targets named "default". * 2014-03-19v0.6.1Fix for watch targets named "default".
* 2014-03-11v0.6.0Clear changed files after triggering live reload to ensure they're only triggered once. `cwd` option now accepts separate settings for files and spawn. Fix to make interrupt work more than once. Enable live reload over HTTPS. Print newline after initial 'Waiting...'. Remove deprecated `grunt.util` libs. Add reload option to specify files other than Gruntfile files to reload. Update to gaze@0.5.1. Use a fork of tiny-lr (which has quiter operation, support for HTTPS and Windows path fixes). Add `livereloadOnError`, which if set to `false` will not trigger live reload if there is an error. * 2014-03-11v0.6.0Clear changed files after triggering live reload to ensure they're only triggered once. `cwd` option now accepts separate settings for files and spawn. Fix to make interrupt work more than once. Enable live reload over HTTPS. Print newline after initial 'Waiting...'. Remove deprecated `grunt.util` libs. Add reload option to specify files other than Gruntfile files to reload. Update to gaze@0.5.1. Use a fork of tiny-lr (which has quiter operation, support for HTTPS and Windows path fixes). Add `livereloadOnError`, which if set to `false` will not trigger live reload if there is an error.
@ -511,4 +512,4 @@ You'll have the `connect` web server on separate port ex: port 9000 from your ma
Task submitted by [Kyle Robinson Young](http://dontkry.com) Task submitted by [Kyle Robinson Young](http://dontkry.com)
*This file was generated on Fri Mar 18 2016 19:24:09.* *This file was generated on Fri Apr 20 2018 15:26:14.*

View File

@ -1,7 +1,7 @@
{ {
"name": "grunt-contrib-watch", "name": "grunt-contrib-watch",
"description": "Run predefined tasks whenever watched file patterns are added, changed or deleted", "description": "Run predefined tasks whenever watched file patterns are added, changed or deleted",
"version": "1.0.0", "version": "1.0.1",
"author": { "author": {
"name": "Grunt Team", "name": "Grunt Team",
"url": "http://gruntjs.com/" "url": "http://gruntjs.com/"