Commit Graph

215 Commits

Author SHA1 Message Date
Remy Sharp
e4412268c4 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:27:54 +01:00
Remy Sharp
3265e92b62 test: fix bad runOnChangeOnly test 2015-10-19 12:27:54 +01:00
Remy Sharp
b875ffc9c0 test: clean string for trigger check 2015-10-19 12:27:53 +01:00
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
526811d9b0 fix: make control over ignoreRoot easier
And add documentation and tests
2015-10-19 12:27:53 +01:00
Remy Sharp
fb8580c806 test: fix searching for nodemon message 2015-10-19 12:27:53 +01:00
Remy Sharp
37755457b6 chore: travis faff 2015-10-19 12:27:52 +01:00
Remy Sharp
099496ab61 chore: cleanup stupid merge mess 2015-10-19 12:27:52 +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
e8f6d296dc chore: exposure on what is failing in travis 2015-09-19 10:32:37 +01:00
Remy Sharp
f4b12476e1 chore: Merge branch 'master' into feature/disable-colour 2015-09-19 10:29:08 +01:00
Remy Sharp
03ef996d29 chore: Merge branch 'fix/package-start-with-env' 2015-09-19 10:25:50 +01:00
Remy Sharp
12d02b5ec2 test: update tests with new pkg.start 2015-09-19 09:43:12 +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
be3b5b3aee test: updating tests for new pkg.start logic 2015-09-16 10:32:43 +01: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
6e40e9adfd feat: support disabling colour output
via cli --no-color/--no-colour and via nodemon.json colours: false
2015-09-12 22:34:07 +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
d675c8be09 refactor: remove legacy watch support
Since we're now using chokidar which has it's own internal way of switching, so we don't need to do it ourselves.
2015-09-12 10:34:49 +01:00
Remy Sharp
6eaf5111ea test: fix version test with semantic release 2015-09-11 23:33:25 +01:00
Remy Sharp
f7a94768f6 refactor: add debugging 2015-09-10 10:38:32 +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
Chris Khoo
50f5994ee6 change --no-startup to --on-change-only 2015-07-20 18:40:45 -07: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
Remy Sharp
9254e470ce Merge pull request #534 from janders223/bug-509
spawn: Change node version checking logic
2015-05-19 13:15:02 +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
Doug Patti
a71db72ece when running a coffee file, use --nodejs correctly
Previously, the --nodejs flag was being prepended if you had any
arguments prefixed with '--', even if they were intended for your
application. There is an additional problem where arguments intended for
node js need to be grouped into a single argument passed after --nodejs.

After this patch, any flag before your script is considered a nodejs
argument. These, along with any other exec arguments are bundled into a
single argument separated by spaces.

Fixes #530
2015-04-22 13:42:52 -04:00
Doug Patti
55320b7d85 test to demonstrate coffee issue with --args
If you try to run nodemon with a coffee file script and pass an
argument to your application, it is instead adding a --nodejs when there
are no node flags to pass along. This causes the command to fail because
the script name is now passed as a flag to node.

Repro:

  nodemon script.coffee --my-argument

Expected:

  coffee script.coffee --my-argument

Actual:

  coffee --nodejs script.coffee --my-argument

Related to #530
2015-04-22 13:39:38 -04:00
Jim Anders
22aa5146f3 spawn: Change node version checking logic
This change allows nodemon to properly work with all versions of io.js.
This fixes #509
2015-04-16 09:32:45 -04:00
Samuel Reed
15751fe432 Fix nodemon.json's 'quit' listener and add test. 2015-03-02 18:44:21 +07: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
a385973ea9 Fixed test failing due to mocked config 2015-02-11 09:56:41 +00:00
Hugo Wood
cec986d4ba Add a failing test demonstrating #482 2015-02-01 23:49:42 +01:00
Remy Sharp
d796e41120 Remove the need for execArgs when user specifying an exec
- Also update tests to check end value, not individual parts
- Simplify tests to check actual output, rather than the pieces that make the output
- Remove redundant code: such a shame, it was cool code, but I'd rather remove it for simplicity and better support. Woot.
2015-02-01 15:59:49 +00:00
Remy Sharp
ce0b5bc9cc Only discover exec from package if no script
Full tests need to run to work out if this is okay to merge, but the logic is that we only go to the package.json for an executable IIF there's no script. If there's a script, then we shouldn't need to discover anything and we'll let the logic fall through the usual path (and usually default to node).
2015-01-20 14:13:25 +00: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
242f03cdd9 Detail which events bound + test fix 2015-01-19 20:13:12 +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
1bb7c01fb6 Check of object hasOwnProp method 2015-01-18 10:48:18 +00:00
Remy Sharp
2367a26fdd This test is for 0.10+ 2015-01-18 10:21:50 +00:00
Remy Sharp
be9e38fa7d Travis tests: use regex for num changes 2015-01-16 23:05:28 +00:00
Remy Sharp
c9b6d989ea No event nodemon support for 0.8 2015-01-16 22:56:05 +00:00
Remy Sharp
56fbf4db22 Unsure if we're matching a num or not... 2015-01-16 22:21:03 +00:00
Remy Sharp
1f002f61d3 Blinking nodemon.json file was missing from git! 2015-01-16 21:56:49 +00:00
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