Commit Graph

101 Commits

Author SHA1 Message Date
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
85feec55d4 Merge pull request #307 from remy/fix/273
Fixed #273
2014-03-11 16:39:34 +00:00
Remy Sharp
b9d0cb6ca3 typo in chdir 2014-03-11 14:44:40 +00:00
Remy Sharp
b164becbaa New test 2014-02-18 20:40:32 +00:00
Remy Sharp
38b349fbb8 Attempting to replicate bug 2014-01-27 17:10:10 +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
a5db9a6347 Fix #274. If app found in package, append to end of cmd 2014-01-27 15:09:46 +00:00
Justin G
9fb17beb9b Implement tests for supported --delay argument values as integer, float, and time specifiers 2014-01-22 17:18:05 -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
6a312a3a77 Relative path tests 2014-01-17 22:37:51 +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
4bd624be7d Tests for all the help examples 2014-01-16 23:16:21 +00:00
Remy Sharp
f636bc16f5 execMap uses script ext to lookup. Fixes #265
+ tests
2014-01-16 22:52:39 +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
9b3b5099c7 If nodemon is required, respect SIGINT, and fricking quit already! 2014-01-09 13:10:07 +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
1d7de9c31f Passes tests again 2014-01-07 22:57:13 +00:00
Remy Sharp
589dffcc42 Watch lib/*.* ignores the extension check. Closes #255 2014-01-06 15:34:43 +00:00
Remy Sharp
c78bcb9faa Documentation of required nodemon 2014-01-05 22:59:23 +00:00
Remy Sharp
de13b292ec Fixed #252. Windows needs to watchFile to trigger watch... 2014-01-05 12:56:16 -08:00
Remy Sharp
a5f81bd883 Fixed old nodemon ignore file support 2014-01-05 14:59:58 +00:00
Remy Sharp
a55ca022f8 Merge branch 'fix/241' of github.com:remy/nodemon into fix/241 2014-01-05 14:32:14 +00:00
Remy Sharp
a41b5632e8 assert message 2014-01-05 14:31:48 +00:00
Remy Sharp
ab549a1e85 All tests passing (damn race conditions) 2014-01-05 10:16:39 +00:00
Remy Sharp
0945ee92cd merge fixes 2014-01-05 01:47:11 +00:00
Remy Sharp
13770da9f3 Fixed nodemon.once. Add config.run. Tests not 100% passing
Something weird is happening with required nodemon and re-running lots of times, that somehow resets the config. I know it's due to my tests, but I'm unsure which one is actually causing the damn issue. Anyway, bed for me, it's almost 2am. Sod this for a game of cricket.
2014-01-05 01:42:37 +00:00
Remy Sharp
8eef00b334 Add new tests for match code and updated for monitor format. 2014-01-05 00:44:56 +00:00
Remy Sharp
f3e76157d2 Tweaking how watching works
Fixed nodemon to echo out what's being watched in the regexp instead of the config.dir path.

Also allowing patterns on the "watch" config setting, rather than just paths.

Removed useless test (that kept failing...incorrectly).
2014-01-03 14:20:46 +00:00
Remy Sharp
e92d29316f Fixed default ignore rule overriding all 2014-01-02 18:17:26 +00:00
sainaen
65a313d1b6 Add support of --harmony* flags passing to node 2013-12-30 11:52:13 +00:00
Remy Sharp
30a4a192f5 Docs and 1.0.0 release. Whoop whoop! 2013-12-29 22:50:02 +00:00
Remy Sharp
ab464021df 78 tests passing on mac. 2013-12-29 20:26:28 +00:00
Remy Sharp
2dc197acb7 fixed watching multiple extensions 2013-12-20 22:54:23 +00:00
Remy Sharp
9ef2ccdd45 more coffeescript windows support 2013-12-15 14:17:40 +00:00
Remy Sharp
c5ca0253be More coffeescript tests passing on windows 2013-12-15 14:15:33 +00:00
Remy Sharp
1fcc30d272 Fixing coffeescript tests for windows 2013-12-15 13:56:33 +00:00
Remy Sharp
86d32281ce Passing all tests on linux 2013-12-14 20:20:27 +00:00
Remy Sharp
5c7af6bfc4 More tests. 79% code coverage + more docs
- Events documented
- Require working nicely
- If nodemon is required, nodemon message are emitted rather than console.log'ged
2013-12-14 00:57:41 +00:00
Remy Sharp
21acd841d6 MOAR test coverage. 71% - good enough for 1.0.0 release 2013-12-12 16:51:59 +00:00
Remy Sharp
c7d18c01f9 Fix require test. Reset event state after complete 2013-12-12 12:46:43 +00:00
Remy Sharp
36e779d830 Testing required restart 2013-12-12 12:10:16 +00:00
Remy Sharp
ad0eba36aa Required nodemon, upon quit, correctly unwatches files 2013-12-12 11:44:59 +00:00
Remy Sharp
fe27740863 Re-introducing require tests 2013-12-11 16:18:21 +00:00
Remy Sharp
3f9a0034d0 Better coverage of cli/parse lib 2013-12-11 16:18:06 +00:00
Remy Sharp
4f5593d439 Fix nodemon.config.required flag, and expose config
For when nodemon is required in to projects like grunt.
2013-12-11 16:17:26 +00:00
Remy Sharp
05e5cecfe7 test for --debug=X 2013-12-11 15:16:32 +00:00