Commit Graph

695 Commits

Author SHA1 Message Date
Remy Sharp
d10fe4e2be trim test output 2015-01-16 17:44:12 +00:00
Remy Sharp
fa7826a2ac Fixed event binding to nodemon not bus 2015-01-16 17:36:25 +00:00
Remy Sharp
bac129079a Fix broken regexp
> nodemon fork monitor should restart on .js file changes with no arguments
2015-01-16 16:16:40 +00:00
Remy Sharp
a36dece91d fixing scripted event tests 2015-01-16 16:07:45 +00:00
Remy Sharp
2647156034 Diagnosing Travis error (VM) 2015-01-16 13:47:20 +00:00
Remy Sharp
89f0dd32e1 Trying to fix test that randomly breaks 2015-01-16 10:19:40 +00:00
Remy Sharp
65d2d49120 Merge branch 'master' into feature/pre-post-events 2015-01-16 10:07:03 +00:00
Remy Sharp
6990aa07d0 Merge pull request #465 from remy/fix/exec-escapes
Tests for weird exec filenames
2015-01-16 02:04:33 -08:00
Remy Sharp
3b8cea480a Fixing tests
- Make scripts output expected content (rather than the bash user!)
- Reduce noise
- Ensure the exec it quoted appropriately
2015-01-16 09:49:15 +00:00
Remy Sharp
299b1a698a Merge branch 'master' into fix/exec-escapes 2015-01-16 09:40:59 +00:00
Remy Sharp
a5b666e87d Merge pull request #464 from remy/fix/double-escape
Fix/double escape
2015-01-16 01:37:00 -08:00
Remy Sharp
aa9d9d8684 typo 2015-01-16 09:32:56 +00:00
Remy Sharp
86821bf6b2 more test output 2015-01-16 09:30:32 +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
f4469e19b1 Show how to use iojs with nodemon
[skip ci]
2015-01-14 08:22:55 +00:00
Remy Sharp
c7f9660144 Merge pull request #459 from remy/fix/419-vm-time-offset
Find on linux and detect container offset
2015-01-12 11:04:24 +00:00
Remy Sharp
0f4ff3ffb4 Ditch trottle for debouce & fix tests 2015-01-09 21:05:36 +00:00
Remy Sharp
f3c8713db3 Quieten down the too many events thing 2015-01-08 12:54:32 +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
86baf99ee2 Merge pull request #458 from remy/fix/454-no-ps
Fixed #454
2015-01-08 10:28:37 +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
Remy Sharp
8d08b183a1 Fixed nodemon require reset fully
And related events test
2015-01-07 21:45:14 +00:00
Remy Sharp
b09a37f2e8 Fixed "watching extension: undefined" 2015-01-07 21:45:14 +00:00
Remy Sharp
061454555a Merge pull request #452 from edi9999/throttle
changed --delay option: it now works like a throttle instead of with setTimeout
2015-01-06 21:52:23 +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
e31a514cab added test for delay option 2015-01-06 10:48:06 +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
69715211d0 Merge branch 'master' into feature/pre-post-events 2015-01-03 15:49:16 +00:00
Remy Sharp
bdf1fc6f05 Merge pull request #450 from remy/fix/exec-parser
Fixed exec parser
2015-01-03 15:45:12 +00:00
Remy Sharp
b70b81612c Removed script, exec, ext from options
This commit removes the duplication that happened at the options and options.execOptions level. Now all exec related information lives in options.execOptions.

I've updated all the references and tests that referred to things like options.script, etc.

This also fixes the (new) bug with exec argments not being placed in the right position when the script is detected via a package (so it reads `node --debug app.js` - this is resolved in command.js (due to the flattening of the config).

I've also fixed a few tests that said they were passing, but actually should have failed (but didn't because I was mocking too much of the code).
2015-01-03 15:35:11 +00: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
449a822d7d fixing test with fixed parser 2015-01-02 11:49:09 +00:00
Remy Sharp
7ee114a96d Updating tests with new execArgs 2015-01-01 21:47:38 +00:00
Remy Sharp
8a43b58666 Fixed failing tests
The execArgs is now a single element, not an array to simplify the spawn command, so I've fixed up the tests to reflect that.
2015-01-01 21:46:01 +00:00
Remy Sharp
b905ffae7d Fixed #448 - but failing other tests WIP
[skip ci]

Currently failing tests around handling of spaces in exec arguments.
2015-01-01 21:39:10 +00:00
Remy Sharp
c85943b76d WIP 2015-01-01 21:26:49 +00:00
Remy Sharp
ee35ef8347 Fixed exec parser
It was losing quotes around arguments, and in fact only needs to capture the first element in the string as the exec, and the rest could be left as is (if I keep the `sh` method of execution).
2015-01-01 20:50:59 +00:00
Remy Sharp
d7d484e7f9 Few tests 2015-01-01 20:49:57 +00:00
Remy Sharp
43ad1d82a2 Merge pull request #443 from joates/master
updated help text grammar [skip ci]
2014-12-18 08:01:57 +00:00
Julian Oates
853ec0506e updated help text grammar
"default" was repeated, "needed" didn't make sense
2014-12-17 17:22:59 +00:00
Remy Sharp
fcb433d1ee v1.3.0-6 2014-12-09 23:04:16 +00:00
Remy Sharp
6f6d7ae496 Early support for event callbacks
Allows user to have event handlers in the nodemon config, such as:

{
  "events": {
    "crash": "say 'your app crashed'",
    "start": "echo 'App started' | tee app.log"
  }
}
2014-12-09 22:56:02 +00:00
Remy Sharp
1d06accf4d Merge branch 'master' into feature/pre-post-events 2014-12-09 22:27:26 +00:00
Remy Sharp
818594c902 WIP 2014-12-09 22:27:03 +00:00