Sergey Slipchenko
7e7dc0402e
Save readiness state on a per-watcher basis
2015-10-22 22:24:06 +03:00
Remy Sharp
2f19ffb5a7
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:34:38 +01:00
Remy Sharp
a3c9356de7
chore: Merge branch 'feature/better-error-on-watch-bork'
2015-09-19 10:47:37 +01:00
Remy Sharp
a5ab2354ec
chore: better handle errors from chokidar
2015-09-19 08:50:15 +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
4826c87744
fix: ignore dotfiles only if not explicitly told to do so
2015-09-15 21:49:40 -07:00
Kevin Woo
cde21fb4de
test: added dotfile tests
2015-09-15 21:46:36 -07:00
Remy Sharp
15b0b88d0f
feat: merge ignore rules with defaults
...
And allow the user to override the defaults from their config
2015-09-12 11:34:28 +01:00
Remy Sharp
7250919e6d
fix: restore file count in verbose mode
2015-09-12 11:34:20 +01:00
Remy Sharp
f7a94768f6
refactor: add debugging
2015-09-10 10:38:32 +01:00
Remy Sharp
438b8d7c0e
refactor: passing jscs
2015-09-09 22:30:43 +01:00
Remy Sharp
ebbe1edb8d
fix: protect from missing options
2015-09-09 22:30:43 +01:00
Remy Sharp
7496f08330
fix: incorrectly exiting when required
...
test: updated travis tests
2015-09-09 22:29:26 +01:00
Remy Sharp
b0fd56f7de
refactor: move watch out in favour of chokidar
...
Plus jscs clean ups
2015-08-31 18:25:55 +01:00
Nikolay Kuchumov
8eefdd0d00
Fixes watch interval
2015-07-11 20:06:54 +03:00
Remy Sharp
5016a38b0a
Fixed crazy restart loop
...
Ensure we don't restart when the last find was 0 seconds ago
2015-01-19 17:07:17 +00:00
Remy Sharp
0f4ff3ffb4
Ditch trottle for debouce & fix tests
2015-01-09 21:05:36 +00:00
Remy Sharp
fd54d04074
Always ensure find ref file is removed
2015-01-08 12:45:57 +00:00
Remy Sharp
b4be4bffe2
Remove logging + swallow error properly
2015-01-08 12:42:13 +00:00
Remy Sharp
c223bfe5d5
Find on linux and detect container offset
...
Closes #455
Closes #453
Fixes #419
This method creates a file and checks the stat to check of an offset between the date on the machine and the created time on the file system. Docker (in my tests) show that you can get the offset using this method.
Once we have the offset, we tell the user (once) and then we use that to find files that have been modified according to the offset (either looking in the last using -mmin or in the future using -newer + a touched file).
2015-01-08 12:35:58 +00:00
Remy Sharp
8d08b183a1
Fixed nodemon require reset fully
...
And related events test
2015-01-07 21:45:14 +00:00
Edgar Hipp
308f71ac3a
updating files to match nodemons syntax style
2015-01-06 12:23:08 +01:00
Edgar Hipp
5b3fb19ffe
using throttle only if config.options.delay>0
2015-01-06 10:56:58 +01:00
Edgar Hipp
986ef40c29
added trailing: false to throttle
...
If trailing is not set to false, a setTimeOut is called if you call the
function when it is 'locked', so you need to set trailing to false to
avoid that unnecessary call
2015-01-05 17:15:47 +01:00
Edgar Hipp
ef5ee96129
changed --delay option: it now works like a throttle instead of with
...
setTimeout.
This changes the behaviour of the option --delay n
This means that as soon as one file changes, nodemon will restart the
script. The previous behavior was to wait for n seconds before
restarting the process. With throttle, the function gets called when the
first file changes. After that, all file changes in the interval [t,t+n]
are ignored
2015-01-05 15:48:14 +01:00
Remy Sharp
283998b340
watcher.close for watchFile doesn't exist
2014-12-09 20:20:19 +00:00
Remy Sharp
8565fd05d3
Revert "TESTING Revert "Find command optimization""
...
This reverts commit b459b6bf68 .
2014-12-05 10:19:29 +00:00
Remy Sharp
1fba4fb26e
Put @arty-name's fix back in
...
Still just testing - and ensuring the fix is solid across platforms.
TODO: revert *back in* the mac find changes
2014-12-05 10:15:15 +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
b459b6bf68
TESTING Revert "Find command optimization"
...
This reverts commit ba7c59ceb7 .
2014-12-05 10:10:02 +00:00
Remy Sharp
6af96ec4c4
Merge branch 'patch-1' of https://github.com/arty-name/nodemon into arty-name-patch-1
2014-12-05 09:26:02 +00:00
Remy Sharp
f9e056b650
Don't follow symlinks on stat
...
Fixes #395 (somehow I fucked up the merge)
2014-12-05 09:19:53 +00:00
Remy Sharp
c035bc7824
Merge branch 'prune-improvement' of github.com:errendir/nodemon into errendir-prune-improvement
2014-12-04 13:22:02 +00:00
Remy Sharp
12c2e2b169
Tidy code to match coding style
2014-12-04 13:20:28 +00:00
Remy Sharp
768fe5fb29
Merge branch 'master' of github.com:JixunMoe/nodemon into JixunMoe-master
2014-12-04 13:18:34 +00:00
Remy Sharp
7b2b96bf8b
Don't echo when we're done
2014-12-02 13:04:36 +00:00
Artemy Tregubenko
e35a85ae15
Properly detect directories
...
Fixes #366 , obsoletes #371 . Filesystem information used in addition to trailing slash.
2014-11-03 20:42:38 +01:00
Yellow Yoshi
c056e09a23
Update watch.js
...
This fixes remy/nodemon#399 , fixes remy/nodemon#392 , fixes remy/nodemon#376 by make the drive letter upper-case.
This is caused by `path.join`, the returned path has a lower-cased drive letter:
```text
> path.join('C:\\', 'Test')
'c:\\Test'
```
Later check path against rules using minimatch, it failed as `options.nocase` is `false` by default.
2014-11-02 12:10:55 +00:00
Artemy Tregubenko
1640b58df4
Do not traverse ignored folders
...
Watch should not recursively go in the ignored directories like `node_modules`
2014-10-31 16:23:28 +01:00
Albert Slawinski
ba7c59ceb7
Find command optimization
2014-08-18 15:46:21 -07:00
Remy Sharp
e568f7a26b
Thou,sands
2014-05-28 13:03:38 +01:00
Remy Sharp
cd3603c086
Show count of watched files
2014-05-28 12:48:59 +01:00
Remy Sharp
50976c2aee
Fixed #334
...
If a single file was being watched, it would use the tryBaseDir method to work out the directory, but fail as a pattern so it would return the base directory - which is too much. Now we test if that string is a real file or a directory, and if it is, it returns *that* back out.
2014-05-14 09:56:44 +01: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
1b8075586c
Warn to mac users when they're watching 25,000+ files
2014-01-17 23:38:48 +00:00
Remy Sharp
df6219c897
Making nodemon options consistent with CLI args
2014-01-09 12:41:30 +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
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