Commit Graph

87 Commits

Author SHA1 Message Date
Remy Sharp
fb2e8687a8 chore: fix linting 2017-12-28 22:06:14 +00:00
Remy Sharp
11d7e67293 fix: incorrect count of watch files being reported
The number of watched files was correct, but showed (incorrectly) a
cumulative total of watched files (i.e. 1 + 2 + 3 + 4 etc).

Fixes #1194
2017-12-28 20:04:38 +00:00
Remy Sharp
4589bc8a60 fix: properly ignore defaults, don't match partial
Changed to passing Chokidar simple strings instead of custom regexp, only had to prefix with **/ to get it to match the ignore directories properly.

Fixes #916
2017-12-20 23:21:35 +00:00
Remy Sharp
67d146637e refactor: remove libraries over native es6 support 2017-12-20 14:09:03 +00:00
Martin Dimitrov
10ded94cd7 fix: fixed an issue where we tried to resolve null as path 2017-12-15 14:14:17 +00:00
Remy Sharp
f8a5abe258 feat: watch script regardless of extension
Fixes the issue where express is a js based project, but the executable
is `www`, so it misses on the match. So now nodemon will watch for
matching extensions but *also* the script the user gave.

Fixes #461

Note that this can't handle the situation where npm is used to run `node
./bin/www` as nodemon can't split out a package script command.
2017-12-15 08:46:11 +00:00
Timothy Huang
cf923a8a77 fix: get tests to pass 2017-12-06 14:45:17 -08:00
Tim
f711fb7889 test: fork child node processes 2017-12-06 14:45:10 -08:00
Remy Sharp
24a4b84717 feat: disable chokidar globbing on windows (#1140)
Fixes a range of issues, including:

Fixes #1115

* refactor: use Object.assign in place of merge (this will leak to more work)

Since we're now supporting 6 upwards
2017-12-04 20:05:58 +00: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
7152585fa2 fix: don't concatenate ignore regexes
The initial `ignored` may be undefined. If it isn't then a pipe character should
be inserted. This is all unnecessary though if we build up an array like before
4826c87744.
2016-02-25 21:08:44 +00:00
Danny Raetzsch
fc2bc168b0 feat: support --polling-interval command line arg 2015-11-09 20:34:43 -06:00
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