Commit Graph

30 Commits

Author SHA1 Message Date
Remy Sharp
0b13116551 refactor: allow dev use of nodemon to show githash
Rather than an arbitrary version string - this will only happen when cloned from git, rather than an npm install. This is entirely for debugging.
2015-10-19 12:27:53 +01:00
Remy Sharp
7250919e6d fix: restore file count in verbose mode 2015-09-12 11:34:20 +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
Nikolay Kuchumov
8eefdd0d00 Fixes watch interval 2015-07-11 20:06:54 +03: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
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
Remy Sharp
641eb96cf5 -w <single file> ignores extension filter
Fixes #299 and fixes #308.

This means if you use nodemon to monitor a .js script, but explicitly watch another file (that isn't .js) then nodemon *will* restart as expected.
2014-03-19 15:33:35 +00:00
Remy Sharp
17b75f9267 Fixes nodemon -w being blank and defaults to *.* 2014-01-27 15:23:47 +00:00
Remy Sharp
2a2f1260e4 If no script, default is null, not -1. Fixes #265
Includes test and exposing the command run for debugging.
2014-01-21 07:57:27 +00:00
Remy Sharp
b9b1cd5499 Moved watch+ignore conversion to match library 2014-01-16 23:45:50 +00:00
Remy Sharp
965446cc45 If mac, only use find on --watch directories 2014-01-15 14:13:46 +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
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
1d049d9f77 Fixed #257 by making directory match: foo/**/* 2014-01-06 15:24:51 +00:00
Remy Sharp
d990b478a1 Removed legacy config options 2014-01-05 14:59:28 +00:00
Remy Sharp
13770da9f3 Fixed nodemon.once. Add config.run. Tests not 100% passing
Something weird is happening with required nodemon and re-running lots of times, that somehow resets the config. I know it's due to my tests, but I'm unsure which one is actually causing the damn issue. Anyway, bed for me, it's almost 2am. Sod this for a game of cricket.
2014-01-05 01:42:37 +00:00
Remy Sharp
08c758f884 Rule matching tested and passing 2014-01-05 00:45:38 +00:00
Remy Sharp
bdcf4478c2 nodemon without args and no package, show usage.txt 2014-01-03 18:39:56 +00:00
Remy Sharp
7959c5bf00 Refactor watch & ignore logic in favour of monitor
Now using minimatch to match globs to files that have changed. Logic orders the rules in order of specificity (i.e. deeper paths have higher specificity) and the file runs through the rules.
2014-01-03 18:27:24 +00:00
Remy Sharp
f3e76157d2 Tweaking how watching works
Fixed nodemon to echo out what's being watched in the regexp instead of the config.dir path.

Also allowing patterns on the "watch" config setting, rather than just paths.

Removed useless test (that kept failing...incorrectly).
2014-01-03 14:20:46 +00:00
Remy Sharp
61884e05a9 Watched directories weren't being registered 2014-01-03 11:54:15 +00:00
Remy Sharp
238acbd64b Default ignore in options and push test delay to 20s 2014-01-02 18:40:01 +00:00
Remy Sharp
0386ce2044 Ask for --dump 2014-01-02 18:16:45 +00:00
Remy Sharp
2dc197acb7 fixed watching multiple extensions 2013-12-20 22:54:23 +00:00
Remy Sharp
3fe5f04a47 Removed config/init.js and moved to index.js 2013-12-11 15:14:33 +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
Remy Sharp
84a461f713 Basic running and restarting working
Also config static module is used by the parts of nodemon to run the thing.

Ignore rules, on the command line also work - a nice new feature.
2013-08-25 09:32:45 +01:00
Remy Sharp
5d44ebb685 still in progress - lots of file laying out 2013-08-19 21:15:20 +01:00