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
931d50050d
fix: rs to restart
...
Always unhook the process.stdin when the child has exited, this allows the `rs` command to be read - otherwise it's ignored.
Fixes #648
2015-09-23 08:34:38 +01:00
Remy Sharp
6a5397e166
fix: allows user to not watch
...
Fixes #516
2015-09-21 11:24:16 +01:00
Remy Sharp
d817866eab
fix: stdin was closed after crashed child
...
Fixes #601
2015-09-19 16:15:03 +01:00
Remy Sharp
a3c9356de7
chore: Merge branch 'feature/better-error-on-watch-bork'
2015-09-19 10:47:37 +01:00
Remy Sharp
d98301d436
chore: Merge branch 'feature/legacy-polling-mode'
...
Conflicts:
test/cli/parse.test.js
2015-09-19 10:43:08 +01:00
Remy Sharp
2e80f9bef7
chore: Merge branch 'master' into feature/better-error-on-watch-bork
2015-09-19 10:29:38 +01:00
Remy Sharp
03ef996d29
chore: Merge branch 'fix/package-start-with-env'
2015-09-19 10:25:50 +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
5e07bfef85
fix: supporting env values in package.start
...
Before it was trying to parse the value in .start, when in fact, the entire value represents the `cmd`.
Fixes #621
Fixes #615
Fixes #577
Fixes #513
2015-09-12 22:51:02 +01: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
Remy Sharp
e177dd7865
Merge pull request #578 from khoomeister/ck-disable-startup
...
add option --no-startup to not run command on startup
2015-07-27 21:44:05 +01:00
Zolmeister
e89786388c
monitor: always exit, fixes #592
2015-07-26 00:57:13 -07:00
Chris Khoo
50f5994ee6
change --no-startup to --on-change-only
2015-07-20 18:40:45 -07:00
Nikolay Kuchumov
8eefdd0d00
Fixes watch interval
2015-07-11 20:06:54 +03:00
Chris Khoo
db196733b7
add option --no-startup to not run command on startup
2015-07-05 16:19:11 -07:00
Remy Sharp
01bc4d0ba1
Merge pull request #515 from STRML/fixQuit
...
Fix nodemon.json's 'quit' listener and add test.
2015-05-19 13:28:22 +01:00
Doug Patti
56c4caf2ed
pull command stringification into a utility
...
This was copied and pasted more than a handful of times around the
library and tests. Some implementations were more naive and did not
try to add quotes if there are spaces within a single argument.
There is one slight oddity in one of the cli parse tests. Stringifying
the command causes many of the arguments to show up in quotes when they
probably shouldn't. This seems to trace back to a deep problem related
to how commands are pulled out of package.scripts.start and is out of
scope for this patch. Even though the test might look incorrect now, it
is an accurate reflection of what the generated command is.
2015-04-22 13:42:55 -04:00
Samuel Reed
15751fe432
Fix nodemon.json's 'quit' listener and add test.
2015-03-02 18:44:21 +07:00
Remy Sharp
47896d9254
Fix the pattern match for windows escaping
...
Fixes #497
2015-02-11 15:04:31 +00:00
Remy Sharp
d984c473a2
Merge pull request #502 from remy/fix/node-0-12
...
Fixed #499 [skip ci]
2015-02-11 12:32:17 +00:00
Remy Sharp
10ed83ea21
Fixed #499
...
`rs` now works again on windows when app has crashed.
2015-02-11 12:16:16 +00: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
7e6fe7c945
Fixes #352
...
The find method wasn't known when it tries to add the directories to monitor. This change fixes that
2015-02-10 19:22:40 +00:00
Hugo Wood
5ab82aa31b
Fixed #482
2015-02-01 23:49:42 +01:00
Remy Sharp
340fa0a13f
Merge pull request #483 from remy/fix/476
...
Fixed #476
2015-01-28 16:04:47 +01:00
Remy Sharp
afc646f026
Fixed #474
...
Support spaces in exec - the user must escape using the ^ character as per http://superuser.com/a/279121
2015-01-28 13:27:21 +00:00
Remy Sharp
e411e72cbf
Fixed #476
...
Use try/catch when trying to work out the offset, because if we don't have permission, we shouldn't vomit.
2015-01-28 12:18:14 +00:00
tom
df006c96a7
parse cmd.args
2015-01-22 11:56:03 +08:00
Remy Sharp
51f825d341
Add test to check if passed opts are priority
...
Currently failing due to bug in code - THIS IS MY PLAN!
2015-01-20 14:08:11 +00:00
Remy Sharp
3feff5035e
Fixed #468
...
My old spawn check was based on the minor value being >= 8, of course now io.js is 1.0.2, it wasn't using the new spawn method, and silencing user scripts.
2015-01-19 21:58:49 +00: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
fa7826a2ac
Fixed event binding to nodemon not bus
2015-01-16 17:36:25 +00:00
Remy Sharp
9651ab88b0
Escape exec *args* only if space
...
This matches npm's functionality. It's also been tested against the "some\"file" test, etc. It's hard too...and late.
2015-01-14 22:45:45 +00:00
Remy Sharp
0f4ff3ffb4
Ditch trottle for debouce & fix tests
2015-01-09 21:05:36 +00:00
Remy Sharp
6415b1ecb3
Merge branch 'master' into fix/419-vm-time-offset
2015-01-08 12:46:22 +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
5f7f36c562
Fixed #454
...
Detect if `ps` is available, and if not, just try to kill the parent
2015-01-07 22:03:24 +00:00