Commit Graph

53 Commits

Author SHA1 Message Date
Kyle Robinson Young
3889f6b100 Close watchers to ensure handle is released. Fixes GH-79. 2013-05-01 19:38:04 -07:00
Kyle Robinson Young
ffe58742df Hold LR servers by port out of scope. In case watch is reloaded. 2013-05-01 16:06:01 -07:00
Kyle Robinson Young
d01491be1b Run again if interrupt off and triggered during previous run. Closes GH-33. 2013-05-01 15:35:23 -07:00
Kyle Robinson Young
5a4ba98254 Only run a single LR server if set at task level unless target overrides. 2013-05-01 11:50:23 -07:00
Kyle Robinson Young
08a62f813b Shorter way to set livereload port 2013-04-30 13:44:21 -07:00
Kyle Robinson Young
cbb0e8e0e4 Implement livereload into the watch task. Ref gruntjs/grunt-contrib-livereload#32 2013-04-30 13:25:41 -07:00
Kyle Robinson Young
dbe658f4f0 Log all watched files when verbose is flagged. Closes GH-66. 2013-04-30 13:25:41 -07:00
Kyle Robinson Young
cd71d6d853 Emit a beep upon complete. 2013-04-30 13:25:41 -07:00
Kyle Robinson Young
602435b42f Override grunt.fatal/warn to try and prevent watch from exiting. Closes GH-58. 2013-04-30 13:25:40 -07:00
Kyle Robinson Young
43cb828791 Add tests and adjustments for restricting events 2013-04-30 13:25:40 -07:00
Kyle Robinson Young
0b79c61d6a Fixing tests 2013-04-30 13:25:40 -07:00
Kyle Robinson Young
2b9ce6fd3c Refactor into task running lib. Reloads gruntfile upon changes. 2013-04-30 13:25:40 -07:00
Jaime Pillora
cf415ad229 Add event option to only trigger watch on certain events. Closes GH-63. 2013-04-02 11:07:24 -07:00
Kyle Robinson Young
856d3d0bc3 Fix for top level options. Fixes GH-56. Bump v0.3.1 2013-02-28 10:15:06 -08:00
Kyle Robinson Young
4669e34a4f Finer detail with completion time 2013-02-26 16:29:32 -08:00
Kyle Robinson Young
28f1467e02 Pass grunt to lib/taskrun to retain context 2013-02-26 16:29:32 -08:00
Kyle Robinson Young
9396cb4e33 Check in case returned error is a string. Ref GH-52. 2013-02-25 10:53:33 -08:00
Chris Danford
165df7827b Debounce runTasks for each target individually. Closes GH-53.
Now, if simultaneous file changes will trigger multiple targets, all
targets execute instead of just one target.
2013-02-25 10:36:13 -08:00
Kyle Robinson Young
9b93859c29 If fatal error returned from gaze hand to grunt.fatal. Fixes GH-52. 2013-02-25 10:14:17 -08:00
Kyle Robinson Young
8006886e52 Implement watch events 2013-02-21 21:59:40 -08:00
Kyle Robinson Young
855396972a Clean up tests 2013-02-21 15:28:42 -08:00
Kyle Robinson Young
903ed61722 Add interrupt option to nospawn 2013-02-20 21:50:48 -08:00
Kyle Robinson Young
ee8fb46e83 Print completed with nospawn. Finish nospawn test. 2013-02-20 21:50:48 -08:00
Kyle Robinson Young
8572348cea Break out task running functionality into a lib. Start on nospawn option. 2013-02-20 21:50:48 -08:00
Jamie Stackhouse
f857f2ba4a Pass raw patterns to gaze. Fixes GH-20. Closes GH-43. 2013-02-13 22:45:29 -08:00
Kyle Robinson Young
a995d7d645 Add latest watch date and completion time. Closes GH-42. 2013-02-05 11:35:28 -08:00
Jason San Jose
c36fea1966 Use grunt.file.expand to support exclusions. Closes GH-30. 2012-12-21 16:22:40 -08:00
Kyle Robinson Young
b7e3551895 Inherit stdio from process. Fixes GH-26 2012-12-17 20:44:29 -08:00
Chris Talkington
7c326a6fcf prep for upcoming grunt release. Closes GH-23.
normalize linefeeds. remove grunt v0.3 and node v0.6 support
2012-12-13 16:09:16 -08:00
Kyle Robinson Young
3496beb2f4 Remove grunt.file.watchFiles 2012-12-12 10:40:14 -08:00
Kyle Robinson Young
4d76707d27 Allow watch task to be renamed. Closes GH-16. 2012-11-19 12:45:45 -08:00
Kyle Robinson Young
d9880aa6bc Use grunt.util.spawn "grunt" option. Closes GH-15. 2012-11-19 12:35:49 -08:00
Kyle Robinson Young
0addd70cca Use CLI options without passed grunt.cli.tasks. Fixes GH-12.
This prevents the watch task or another task registered to the watch task
from running duplicate watch tasks.
2012-11-01 18:08:55 -07:00
Kyle Robinson Young
3682c6e654 Dont display empty stderr. Add test for failing task 2012-10-31 17:12:03 -07:00
Kyle Robinson Young
8f4bd99f40 Use process.argv to spawn grunt
Will use the node and grunt bin that originally spawned
the process to spawn child processes.
2012-10-28 14:36:06 -07:00
Gong Hao
faaa0d1118 Use process.argv[1] to find the globally installed grunt bin. Closes GH-9. 2012-10-23 09:32:42 -07:00
Kyle Robinson Young
321db68625 Grunt v0.3 compat for if file exists. Bump v0.1.2 2012-10-17 10:29:35 -07:00
Kyle Robinson Young
3f8be3283d Better search for the Grunt bin 2012-10-16 18:59:55 -07:00
Kyle Robinson Young
7b7cd40b3f Fix and add tests for spawn once and interrupt 2012-10-16 16:31:34 -07:00
Kyle Robinson Young
d62b6501d3 Fix line endings from windows to unix 2012-10-16 15:25:07 -07:00
Kyle Robinson Young
596b69e95d Only spawn per task one at a time. Add interrupt option. 2012-10-16 15:23:43 -07:00
Kyle Robinson Young
5d8bceefee Display fatal error if Grunt bin doesnt exist 2012-10-16 14:02:25 -07:00
Kyle Robinson Young
3ad21c5201 Fallback to globally installed grunt if local doesnt exist 2012-10-16 13:39:46 -07:00
Kyle Robinson Young
5fd718dd75 Remove unused code 2012-10-16 09:51:36 -07:00
Kyle Robinson Young
72c1b9edff Add grunt.utils compatibility for Grunt v0.3 2012-10-15 11:10:27 -07:00
Kyle Robinson Young
db4aacbe2e Create a new watcher per target
Simplifies code and provides a watching performance boost.
Also allows options to be set per target.
2012-10-11 23:57:49 -07:00
Kyle Robinson Young
5d491ddaf4 Read the config exactly like existing watch task 2012-10-11 22:26:00 -07:00
Kyle Robinson Young
c5b72f131d Refactor spawn out of helper 2012-10-09 14:55:53 -07:00
Kyle Robinson Young
2382b757d9 Use the cwd base and gruntfile if not specified 2012-10-09 12:15:05 -07:00
Kyle Robinson Young
4c16bf5e27 Release watch task 2012-10-08 22:47:41 -07:00