Commit Graph

51 Commits

Author SHA1 Message Date
Tim Kang
a8bb230990 Make it more clear that the server is listening on INADDR_ANY 2015-02-20 21:06:33 -08:00
Tim Kang
70f142b9a0 Merge branch 'master' into add-hostname-option
Conflicts:
	test/tasks/livereload_test.js
2015-02-20 20:44:23 -08:00
Kyle Robinson Young
64ef021e7c Update copyright to 2015 2015-01-01 11:32:47 -08:00
Joel Kemp
2fd46f1a81 Used JSCS and fixed violations 2014-12-07 19:43:44 -05:00
Tim Kang
0acd00f8ca Expose hostname parameter of tiny-lr 2014-11-06 19:04:34 -08:00
Clayton Watts
4b1801be53 Switch back to mklabs/tiny-lr 2014-10-07 16:13:21 -06:00
jakub-g
6421986b00 Fix GH-169 endless loop with atBegin/nospawn. Closes GH-356.
This commit fixes an issue where a failure of a watch task
with options `{ atBegin : true, spawn : false }` lead to an infinite loop
of tasks.
2014-07-24 15:53:51 -07:00
Kyle Robinson Young
e140e1a997 Fix for no target configs 2014-03-19 12:30:53 -07:00
Kyle Robinson Young
c92448d418 Fix for watch configs with "default" target name. Fixes GH-312. 2014-03-19 10:37:10 -07:00
Chris Gross
153a551678 Livereload option to not reload if tasks fail. Fixes GH-84. Closes GH-293.
Also reload configured tasks before each run
2014-03-11 22:26:39 -07:00
Kyle Robinson Young
ffa27dff42 Use tiny-lr-fork 2014-03-11 22:17:51 -07:00
Kyle Robinson Young
c12d19b6ac Update copyright to 2014 2014-02-28 17:06:18 -08:00
Kyle Robinson Young
bc14a58bf6 Replace deprecated grunt.util libs 2013-12-08 10:20:42 -08:00
Joey Baker
7817d405a0 Change HTTPS API to match grunt-contrib-connect
fixes #218
2013-10-18 19:54:47 -07:00
Kyle Robinson Young
5cfb9fe57d Node v0.8 returns code 1 on SIGINT vs 130 with v0.10 2013-10-15 12:55:24 -07:00
Joey Baker
90e090afee Enable live reload to work over https connections. Closes GH-197. 2013-09-29 15:42:25 -07:00
Brian Lai
dfa6953aaf Fix to make interrupt work more than once. Closes GH-155. 2013-08-27 16:39:40 -07:00
Jaime Pillora
7c5a485974 cwd option now accepts separate files and spawn cwd settings. Closes GH-125.
Conflicts:
	test/fixtures/multiTargets/Gruntfile.js
2013-08-27 16:14:09 -07:00
Manuel Cabral
0d078cbe8b Clear changedFiles after triggering livereload. Closes GH-193. 2013-08-26 16:16:35 -07:00
Kyle Robinson Young
85fe0b2364 Fix running tasks after a gruntfile is reloaded. Fixes GH-184. 2013-08-16 08:28:35 -07:00
Kyle Robinson Young
7156379f96 Better options handling and fix bug resetting options. Ref GH-162. 2013-07-19 21:21:00 -07:00
Kyle Robinson Young
130d6dc1dd Re-grab task/target options on each run. Ref GH-158. 2013-07-18 20:17:54 -07:00
Iskren Chernev
419738ba2e Append watch.options.cliArgs on spawn. Closes GH-158.
Currently cliArgs was fetched once on watch task startup. This means that event
handlers can not change that afterwords. Now every time grunt is spawned it can
have different command line arguments.
2013-07-16 12:51:27 -07:00
Kyle Robinson Young
09f4854459 Change nospawn option to spawn. Closes GH-81. 2013-07-11 12:42:17 -07:00
John K. Paul
bfe7a2a1fb Add atBegin option to run tasks when watcher starts. Closes GH-147. 2013-07-07 14:12:50 -07:00
cfddream
ec87f65395 Optimize delete operations on taskrunner queue. Closes GH-133. 2013-06-22 22:59:53 -07:00
Kyle Robinson Young
64902fe3d9 Ensure tasks are an array. Fixes GH-115. 2013-05-27 11:39:07 -07:00
Kyle Robinson Young
c33545f297 Only group changed files per target to send correct files to live reload. Fixes GH-87. 2013-05-11 21:52:19 -07:00
Kyle Robinson Young
0855146fba Friendlier error when port in use. Closes GH-91. 2013-05-08 23:00:29 -07:00
Kyle Robinson Young
4badeb41e7 Allow no tasks if just live reloading. Ref GH-74, Ref GH-82. 2013-05-07 12:17:21 -07:00
Kyle Robinson Young
f8a7b3cebe Revert "Run again if interrupt off and triggered during previous run. Closes GH-33."
This reverts commit d01491be1b.
2013-05-07 11:32:24 -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
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
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
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
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
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