Commit Graph

30 Commits

Author SHA1 Message Date
Remy Sharp
a3b6c3ec26 fix: allows user to not watch
Fixes #516
2015-10-19 12:27:53 +01:00
Remy Sharp
526811d9b0 fix: make control over ignoreRoot easier
And add documentation and tests
2015-10-19 12:27:53 +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
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
438b8d7c0e refactor: passing jscs 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
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
66e71d6b64 Fixes #383
Ensure we look at the package last, after reading cli options and user prefs via nodemon.json
2014-12-05 22:52:06 +00:00
Remy Sharp
7901854408 Ensure *nix kills entire process tree.
Fixes #333 and fixes #335. Amazingly Windows support always had the full process tree being killed, but this solves it for mac and linux now. My only grip is we have a new dependancy for the project, but I don't really think that's such a big deal.
2014-05-12 22:41:26 +01:00
Remy Sharp
b6b98716a1 Quiet option wasn't working. 2014-01-17 23:37:12 +00:00
Remy Sharp
bfc4ac1c4d Required nodemon accepts env to pass to spawned process
See https://github.com/ChrisWren/grunt-nodemon/pull/29 for example/request
2014-01-15 14:07:36 +00:00
Remy Sharp
169d3fb11d Add support for --cwd (and .cwd) to run nodemon from that root 2014-01-09 13:09:39 +00:00
Remy Sharp
4048c7566b Fixed #243. Seriously. 90+ tests & this one keeps slipping by 2014-01-05 21:00:24 +00:00
Remy Sharp
a5f81bd883 Fixed old nodemon ignore file support 2014-01-05 14:59:58 +00:00
Remy Sharp
1bef643697 Fixed crash when no env.HOME 2014-01-02 18:17:47 +00:00
Remy Sharp
30a4a192f5 Docs and 1.0.0 release. Whoop whoop! 2013-12-29 22:50:02 +00:00
Remy Sharp
0735109bbd show which config is loaded 2013-12-29 21:25:59 +00:00
Remy Sharp
ab464021df 78 tests passing on mac. 2013-12-29 20:26:28 +00:00
Remy Sharp
86d32281ce Passing all tests on linux 2013-12-14 20:20:27 +00:00
Remy Sharp
5c7af6bfc4 More tests. 79% code coverage + more docs
- Events documented
- Require working nicely
- If nodemon is required, nodemon message are emitted rather than console.log'ged
2013-12-14 00:57:41 +00:00
Remy Sharp
417a4c6510 Now loading old style nodemonignore configs 2013-12-11 15:15:34 +00:00
Remy Sharp
999f87eeda Support for execMap #195 and tests 2013-12-10 13:29:35 +00:00
Remy Sharp
d092d71775 Ignore .git & node_modules/**/node_modules by default. Closes #230
Also linting, tests and cleaned up filename that's echoed triggering the change
2013-12-05 00:12:24 +00:00
Remy Sharp
c503222f30 Refactoring.
* userScript => script
* simplified exec library
* removed dead code in config loading
* nodemon now knows when it's being required (and goes dark)
* etc...
2013-12-03 13:34:40 +00:00
Remy Sharp
0b0d31c37b Got the logic in reverse with config merge 2013-10-31 00:35:21 +00:00
Remy Sharp
cc44b58641 Fixed extension watching and fixed perf bug in check
Needs careful testing in linux and windows.

Also fixed #204 but requires config file to set `restartable` to false, since there's so many options to configure stdin and this particular case has narrow use.
2013-10-31 00:25:36 +00:00
Remy Sharp
81eb5effa5 Fixed nodemnon . and nodemon.json loaded before flags set 2013-10-30 20:14:37 +00:00
Remy Sharp
817e2269dc Custom merge with tests
Also fixes missing values in config
2013-10-30 19:43:20 +00:00
Remy Sharp
d90fee7a4c Loading .json files, parsing cli & detailed output
- Loads $HOME/nodemon.json
- Then ./nodemon.json
- Then overwrites with cli (or module) settings
- -V gives detail of what's going on inside nodemon
- -q shuts nodemon up entirely
- Cleaner config loading breakup
2013-10-29 13:41:47 +00:00