Commit Graph

143 Commits

Author SHA1 Message Date
Remy Sharp
d5c4d1c594 Revert package version away from RC to 1.0.16
Conflicts:
	package.json
2014-03-20 12:14:13 +00:00
Remy Sharp
690c564a80 Fixed #303, #304 and #311.
We don't use pipe by default for stdio spawn, we look at how nodemon is being used, the either decide to use pipe or process.stdout/err. Then depending on whether nodemon is required, we then attach to the different stdout/err streams as required.
2014-03-20 12:08:48 +00:00
Remy Sharp
b1e4111626 If a rule matches, only say it once. 2014-03-19 15:48:48 +00:00
Remy Sharp
641eb96cf5 -w <single file> ignores extension filter
Fixes #299 and fixes #308.

This means if you use nodemon to monitor a .js script, but explicitly watch another file (that isn't .js) then nodemon *will* restart as expected.
2014-03-19 15:33:35 +00:00
Remy Sharp
a9f8dd97ec Work on #304 and #304 to read the stdout *stream*
Changed it from using `.on('data')` to using a PassThrough stream which does the job much better, but the readline demos don't work when they're doing anything special on stdout, like `.cursorTo`. WIP.
2014-03-19 14:27:03 +00:00
Remy Sharp
85feec55d4 Merge pull request #307 from remy/fix/273
Fixed #273
2014-03-11 16:39:34 +00:00
Remy Sharp
9fb11fa7f0 Support for -w 'lib/**/foo.js' to match 'lib' 2014-03-11 15:31:00 +00:00
Remy Sharp
360a16c5dd Put the find narrow method back in
In favour of attempting to find the basedir the pattern sits on, but only try when the path looks like a pattern, otherwise it's more likely to be an incorrect directory.
2014-03-11 15:16:32 +00:00
Remy Sharp
5664e575bd Removed config.dirs.push to default to all 2014-03-11 14:47:04 +00:00
Amber Dixon
04d368b9a9 Make the ignore flag work on Mac, where the "find" option is used for file watching. 2014-02-18 20:41:20 +00:00
Remy Sharp
400f5bc69b Fixed #281. Can now watch with . and .* 2014-01-27 16:12:54 +00:00
Remy Sharp
614f49cc8c Merge pull request #282 from remy/fix/274
Fix/274
2014-01-27 07:26:11 -08:00
Remy Sharp
ad0323711b Allows a rule to be empty (i.e. nodemon -w) 2014-01-27 15:24:12 +00:00
Remy Sharp
17b75f9267 Fixes nodemon -w being blank and defaults to *.* 2014-01-27 15:23:47 +00:00
Remy Sharp
c4b3f5beb7 Small lint errors 2014-01-27 15:23:36 +00:00
Remy Sharp
a5db9a6347 Fix #274. If app found in package, append to end of cmd 2014-01-27 15:09:46 +00:00
Justin G
45950a840f Added milliseconds support for --delay option, using float and time specifier (ms) values 2014-01-23 10:45:38 -06:00
Remy Sharp
2a2f1260e4 If no script, default is null, not -1. Fixes #265
Includes test and exposing the command run for debugging.
2014-01-21 07:57:27 +00:00
Remy Sharp
1b8075586c Warn to mac users when they're watching 25,000+ files 2014-01-17 23:38:48 +00:00
Remy Sharp
b6b98716a1 Quiet option wasn't working. 2014-01-17 23:37:12 +00:00
Remy Sharp
34cb3a10fb Fixed #268 relative paths on watches now work 2014-01-17 22:37:23 +00:00
Remy Sharp
ea5e925716 Patch to fix directory/* being ignored in ignore rule 2014-01-17 17:54:36 +00:00
Remy Sharp
fd0f9eb297 Allow ignore or watch to be strings. Not great, but useful. 2014-01-17 17:54:36 +00:00
Remy Sharp
b9b1cd5499 Moved watch+ignore conversion to match library 2014-01-16 23:45:50 +00:00
Remy Sharp
f636bc16f5 execMap uses script ext to lookup. Fixes #265
+ tests
2014-01-16 22:52:39 +00:00
Remy Sharp
25abc37fd2 allow dump to run without any extra args 2014-01-15 14:14:45 +00:00
Remy Sharp
7d4c8c14bc cli takes priority over execMap 2014-01-15 14:14:31 +00:00
Remy Sharp
965446cc45 If mac, only use find on --watch directories 2014-01-15 14:13:46 +00:00
Remy Sharp
8ac5051d95 Allows nodemon to error if non-existent script is passed 2014-01-15 14:12:56 +00:00
Remy Sharp
483e70283e Pass non-nodemon args *in order* to exec. Fixes #263 2014-01-15 14:11:56 +00:00
Remy Sharp
bfc4ac1c4d Required nodemon accepts env to pass to spawned process
See https://github.com/ChrisWren/grunt-nodemon/pull/29 for example/request
2014-01-15 14:07:36 +00:00
Remy Sharp
e9416f7cdf Prevent eating arguments that match files 2014-01-10 12:29:50 +00:00
Remy Sharp
9b3b5099c7 If nodemon is required, respect SIGINT, and fricking quit already! 2014-01-09 13:10:07 +00:00
Remy Sharp
169d3fb11d Add support for --cwd (and .cwd) to run nodemon from that root 2014-01-09 13:09:39 +00:00
Remy Sharp
727e2cc853 Better nodemon cli slurping.
Now (like 0.x nodemon) nodemon will look for it's arguments in all the cli args - including *after* the user script. But additionally, if the user uses the `--` flag, nodemon will stop eating arguments, and pass them all to the user script.
2014-01-09 12:42:13 +00:00
Remy Sharp
df6219c897 Making nodemon options consistent with CLI args 2014-01-09 12:41:30 +00:00
Remy Sharp
5c24bbbf6a removed console message 2014-01-07 23:46:46 +00:00
Remy Sharp
85b6349522 Fixed #260 by using watchFile.
Should also close #74 as it's a similar problem. Also clarified the system
flags.
2014-01-07 15:32:52 -08:00
Remy Sharp
b35c3347b2 Merge branch 'fix/74' of github.com:remy/nodemon into fix/74
Conflicts:
	lib/monitor/watch.js
2014-01-07 22:59:11 +00:00
Remy Sharp
1d7de9c31f Passes tests again 2014-01-07 22:57:13 +00:00
Remy Sharp
968fee4ed0 Attempt to use fs.watchFile when in legacy 2014-01-07 22:56:30 +00:00
Remy Sharp
d922b49a45 Allow the watch test to fire *very* late. Working on #260 2014-01-07 22:42:02 +00:00
Remy Sharp
96e78e672d If user exec, then don't require script. Fixes #259. 2014-01-07 22:34:15 +00:00
Remy Sharp
3c3b540df6 Moving Mac back to find.
We're purposely putting Mac over to the `find` command. This is because it has a default ulimit of 256 - which is WAY LOW, and without asking the user to `unlimit -n <BIG-ASS-NUMBER>` it'll throw up all over your screen like this: http://d.pr/i/R6B8+
2014-01-06 17:22:40 +00:00
Remy Sharp
589dffcc42 Watch lib/*.* ignores the extension check. Closes #255 2014-01-06 15:34:43 +00:00
Remy Sharp
9d138df520 lint fix 2014-01-06 15:25:52 +00:00
Remy Sharp
1d049d9f77 Fixed #257 by making directory match: foo/**/* 2014-01-06 15:24:51 +00:00
Remy Sharp
d44bbf6fd5 Ignore all of .git directory, not just contents 2014-01-06 15:24:32 +00:00
Remy Sharp
a9212e748e Fixed #252. The timeout was too quick for fs.watch
I also have disabled the default assumption that watch won't work on mac (though I reserve the right to switch back!).
2014-01-06 15:07:09 +00:00
Remy Sharp
c78bcb9faa Documentation of required nodemon 2014-01-05 22:59:23 +00:00