grunt-contrib-watch
Advanced tools
Comparing version 0.5.1 to 0.5.2
@@ -61,3 +61,3 @@ # Examples | ||
options: { | ||
nospawn: true, | ||
spawn: false, | ||
}, | ||
@@ -77,3 +77,3 @@ }, | ||
If you need to dynamically modify your config, the `nospawn` option must be enabled to keep the watch running under the same context. | ||
If you need to dynamically modify your config, the `spawn` option must be disabled to keep the watch running under the same context. | ||
@@ -222,2 +222,2 @@ If you save multiple files simultaneously you may opt for a more robust method: | ||
Spawning does cause a performance hit (usually 500ms for most environments). It also cripples tasks that rely on the watch task to share the context with each subsequent run (i.e., reload tasks). If you would like a faster watch task or need to share the context please set the `nospawn` option to `true`. Just be aware that with this option enabled, the watch task is more prone to failure. | ||
Spawning does cause a performance hit (usually 500ms for most environments). It also cripples tasks that rely on the watch task to share the context with each subsequent run (i.e., reload tasks). If you would like a faster watch task or need to share the context please set the `spawn` option to `false`. Just be aware that with this option enabled, the watch task is more prone to failure. |
@@ -17,7 +17,7 @@ /* | ||
'tasks/**/*.js', | ||
'<%= nodeunit.tests %>' | ||
'<%= nodeunit.tests %>', | ||
], | ||
options: { | ||
jshintrc: '.jshintrc' | ||
} | ||
jshintrc: '.jshintrc', | ||
}, | ||
}, | ||
@@ -31,4 +31,4 @@ watch: { | ||
nodeunit: { | ||
tests: ['test/tasks/*_test.js'] | ||
} | ||
tests: ['test/tasks/*_test.js'], | ||
}, | ||
}); | ||
@@ -35,0 +35,0 @@ |
{ | ||
"name": "grunt-contrib-watch", | ||
"description": "Run predefined tasks whenever watched file patterns are added, changed or deleted.", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"homepage": "https://github.com/gruntjs/grunt-contrib-watch", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -240,3 +240,3 @@ # grunt-contrib-watch [![Build Status](https://travis-ci.org/gruntjs/grunt-contrib-watch.png?branch=master)](https://travis-ci.org/gruntjs/grunt-contrib-watch) | ||
options: { | ||
nospawn: true, | ||
spawn: false, | ||
}, | ||
@@ -256,3 +256,3 @@ }, | ||
If you need to dynamically modify your config, the `nospawn` option must be enabled to keep the watch running under the same context. | ||
If you need to dynamically modify your config, the `spawn` option must be disabled to keep the watch running under the same context. | ||
@@ -401,3 +401,3 @@ If you save multiple files simultaneously you may opt for a more robust method: | ||
Spawning does cause a performance hit (usually 500ms for most environments). It also cripples tasks that rely on the watch task to share the context with each subsequent run (i.e., reload tasks). If you would like a faster watch task or need to share the context please set the `nospawn` option to `true`. Just be aware that with this option enabled, the watch task is more prone to failure. | ||
Spawning does cause a performance hit (usually 500ms for most environments). It also cripples tasks that rely on the watch task to share the context with each subsequent run (i.e., reload tasks). If you would like a faster watch task or need to share the context please set the `spawn` option to `false`. Just be aware that with this option enabled, the watch task is more prone to failure. | ||
@@ -407,2 +407,3 @@ | ||
* 2013-08-16 v0.5.2 Fixed issue running tasks after gruntfile is reloaded. Ignores empty file paths. | ||
* 2013-07-20 v0.5.1 Fixed issue with options resetting. | ||
@@ -431,2 +432,2 @@ * 2013-07-18 v0.5.0 Added target name to watch event. Added atBegin option to run tasks when watcher starts. Changed nospawn option to spawn (nospawn still available for backwards compatibility). Moved libs/vars into top scope to prevent re-init. Bumped Gaze version to ~0.4. Re-grab task/target options upon each task run. Add dateFormat option to override the date/time output upon completion. | ||
*This file was generated on Sat Jul 20 2013 09:03:45.* | ||
*This file was generated on Fri Aug 16 2013 08:58:16.* |
@@ -74,2 +74,5 @@ /* | ||
// Return the targets normalized | ||
var targets = self._getTargets(self.name); | ||
if (self.running) { | ||
@@ -83,9 +86,4 @@ // If previously running, complete the last run | ||
self.run(); | ||
} | ||
// Return the targets normalized | ||
var targets = self._getTargets(self.name); | ||
// Check whether target's tasks should run at start w/ atBegin option | ||
if (self.running === false) { | ||
} else { | ||
// Check whether target's tasks should run at start w/ atBegin option | ||
self.queue = targets.filter(function(tr) { | ||
@@ -92,0 +90,0 @@ return tr.options.atBegin === true && tr.tasks.length > 0; |
@@ -129,2 +129,7 @@ /* | ||
// Skip empty filepaths | ||
if (filepath === '') { | ||
return; | ||
} | ||
// If Gruntfile.js changed, reload self task | ||
@@ -131,0 +136,0 @@ if (/gruntfile\.(js|coffee)/i.test(filepath)) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94203
1641
429