Commit Graph

79 Commits

Author SHA1 Message Date
Aurélio A. Heckert
7d6c1a88a1 fix: Replace jade references by pug
close #1595
2019-10-15 19:27:50 -04:00
Remy Sharp
d5b98915eb test: ensure ignore relative paths
(when asked)
2019-10-07 18:11:43 +01:00
Damián Nohales
5a47a32f79 fix: properly pass options to chokidar 2018-08-29 18:47:51 +01:00
Remy Sharp
d48a482b47 fix: don't watch directory when watching file
Fixes #1320

Also refactors the fix for #1259
2018-07-10 18:40:48 +01:00
Remy Sharp
9d1a63c6a6 fix: allow watching relative path files (#1385)
Fixes #1355
2018-07-10 18:39:53 +01:00
Remy Sharp
97f8d0a175 fix: node_modules watched off relative path (#1328)
* chore: bump chokidar to latest
* test: fix weird output on restart filename
* test: skip old broken test
* fix: node_modules watched off relative path

Fixes #1294
Fixes #1305 (though couldn't confirm - just looks very similar)

I've gone back and forth on this Chokidar option `cwd` and in this fix
I've removed it from the config. I've checked the issues that were
raised that caused me to add the option, and they still appear to pass
in the tests, so I believe it's okay.

However, it _might_ come back in - just a note for Future @remy.
2018-05-05 20:17:21 +01:00
Remy Sharp
1cda8fae43 fix: ensure directories are watched, not files (#1260)
Fixes #1259
2018-02-19 16:49:55 +00:00
Remy Sharp
88954455be fix: make watch & ignore relative (#1253)
* docs: add sponsors

[skip ci]

* fix: make watch & ignore relative

Fixes #1246

* fix: relative parent watching and ignore

* chore: lint

* test: fix bail on options
2018-02-15 21:57:47 +00:00
Remy Sharp
e90f15aa8a fix: node < 6.4.0 causing crash on 'rs' trigger
* fix: node < 6.4.0 can't connect to stdin
* fix: child stdio when spawn is similar to fork

Fixes #1218
2018-01-09 13:18:08 +00:00
Dominykas Blyžė
35b86a92e1 test: increase timeout between writing files and starting nodemon
It seems that the filesystem events for creating the files get delayed somehow and arrive after nodemon has started - increasing the timeout prevents a restart before we've actually modified the file
2017-12-20 14:08:53 +00:00
Dominykas Blyžė
b326b4648a test: unlink tmp files after each test 2017-12-20 14:08:53 +00:00
Dominykas Blyžė
c5bf96c051 test: always wait for nodemon.reset() to complete in teardown 2017-12-20 14:08:53 +00:00
Dominykas Blyžė
70a2ec7f3d test: use unlinkSync; validate file exists before unlinking
Sometimes tests fail because the file does not exist (it was possibly not created due to unrelated failure?); Async unlinking might also be causing unnecessary restarts (sometimes test fail with "`done` called twice")
2017-12-20 14:08:53 +00:00
Dominykas Blyžė
84ec156ed0 test: fix hanging test 2017-12-20 14:08:53 +00:00
Tim
f711fb7889 test: fork child node processes 2017-12-06 14:45:10 -08:00
Remy Sharp
6d57dac0ee fix: bump deps and fix tests for local dev (#1139)
Upgraded tests for node 8
2017-12-04 14:56:44 +00:00
Mark Wubben
12b8935232 test: should not match dotfiles unless asked 2016-02-25 21:08:44 +00:00
Mark Wubben
3d19aee29f test: watcher shouldn't crash if ignoreRoot is [] 2016-02-25 21:08:44 +00:00
Remy Sharp
e4412268c4 fix: restart on new files added to watched dir
Fixes #664

Also includes tests and quietens the force crash test (though unchanged).
2015-10-19 12:27:54 +01:00
Remy Sharp
3265e92b62 test: fix bad runOnChangeOnly test 2015-10-19 12:27:54 +01:00
Remy Sharp
489f22dc93 fix: restore --legacy-watch
Pass the `usePolling` flag to Chokidar when in legacy mode, which is supposed to/hopefully fix containers watching network attached drives.

Fixes #639
Fixes #633
2015-09-19 08:20:39 +01:00
Kevin Woo
cde21fb4de test: added dotfile tests 2015-09-15 21:46:36 -07:00
Remy Sharp
f7a94768f6 refactor: add debugging 2015-09-10 10:38:32 +01:00
Remy Sharp
7496f08330 fix: incorrectly exiting when required
test: updated travis tests
2015-09-09 22:29:26 +01:00
Chris Khoo
50f5994ee6 change --no-startup to --on-change-only 2015-07-20 18:40:45 -07:00
Chris Khoo
db196733b7 add option --no-startup to not run command on startup 2015-07-05 16:19:11 -07:00
Jim Anders
22aa5146f3 spawn: Change node version checking logic
This change allows nodemon to properly work with all versions of io.js.
This fixes #509
2015-04-16 09:32:45 -04:00
Remy Sharp
2445e0ea48 Merge pull request #501 from remy/fix/352
Fix #352 [skip ci]
2015-02-11 10:02:02 +00:00
Remy Sharp
a385973ea9 Fixed test failing due to mocked config 2015-02-11 09:56:41 +00:00
Hugo Wood
cec986d4ba Add a failing test demonstrating #482 2015-02-01 23:49:42 +01:00
Remy Sharp
e3faa34c7f more info in failed tests 2015-01-02 13:06:13 +00:00
Remy Sharp
aa76dafd35 Fixing tests to work in different envs 2015-01-02 13:02:00 +00:00
Remy Sharp
9d4c23cf4a Verbose test failure logging 2014-12-05 11:37:28 +00:00
Remy Sharp
785de296e4 Merge branch 'master' of https://github.com/rosshettel/nodemon into rosshettel-master 2014-12-05 11:17:55 +00:00
Remy Sharp
62757d2edc Pushing failing test
Trying out on linux platform - expecting a failed test
2014-12-05 10:10:52 +00:00
Remy Sharp
21d52d0045 Initial test to read watch count 2014-12-05 09:48:52 +00:00
Ross Hettel
c399e74a6f added more unit tests to match logic 2014-07-31 14:53:55 -05:00
Ross Hettel
4631a01a3d ignore rules take priority in sorting 2014-07-21 16:28:20 -05:00
Michael Heuberger
c4e263ed37 expose streams for piping (mh) 2014-06-04 02:49:24 +12:00
Remy Sharp
b4e45348aa Fix #336. Relative paths are resolved in rules. 2014-05-12 17:39:18 +01: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
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
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
9b3b5099c7 If nodemon is required, respect SIGINT, and fricking quit already! 2014-01-09 13:10:07 +00:00
Remy Sharp
589dffcc42 Watch lib/*.* ignores the extension check. Closes #255 2014-01-06 15:34:43 +00:00