41 Commits

Author SHA1 Message Date
Remy Sharp
6e839d4a33 fix: support implicit filename extension
Fixes #1193
2017-12-29 10:55:12 +00:00
Remy Sharp
0c78a9c7a0 test: remove .only 2017-12-23 08:48:46 +00:00
Remy Sharp
ad226afc13 fix: ensure non-slurp is passed to script
The `--` argument now passes all arguments after the script (if omitted in the nodemon call), rather than the exec command.

Fixes #750
2017-12-22 22:34:18 +00:00
Remy Sharp
a282afbbe3 fix: support nodemon index to expand to index.js
With support for custom extensions (picking only the first).

Fixes #1165
2017-12-15 08:45:49 +00:00
Remy Sharp
17ad4b9f1a docs: include .github templates 2017-12-05 13:08:53 +00:00
Tim Kang
3c352f2f27 fix: support signal on CLI (#1061) 2017-09-04 19:41:35 +01:00
Kyle Smith
ee110add53 feat: support --config command line arg
Implement `--config <file>` option to allow config loading from an arbitrary file instead of being
bound to the static `$PWD/nodemon.json`.

Closes #755 
Closes #855
2016-07-25 22:01:45 +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
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
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
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
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
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
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
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
449a822d7d fixing test with fixed parser 2015-01-02 11:49:09 +00:00
Remy Sharp
93113c9d70 Better tests for scripts with spaces 2014-12-08 18:31:25 +00:00
Remy Sharp
a34a47bfba Text tweaks 2014-05-28 12:49:11 +01:00
Remy Sharp
c4a7e071b1 Adding support for package.scripts.start
Ref #330
2014-05-28 12:46:56 +01:00
Remy Sharp
614f49cc8c Merge pull request #282 from remy/fix/274
Fix/274
2014-01-27 07:26:11 -08:00
Remy Sharp
a5db9a6347 Fix #274. If app found in package, append to end of cmd 2014-01-27 15:09:46 +00:00
Justin G
9fb17beb9b Implement tests for supported --delay argument values as integer, float, and time specifiers 2014-01-22 17:18:05 -06: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
4bd624be7d Tests for all the help examples 2014-01-16 23:16:21 +00:00
Remy Sharp
f636bc16f5 execMap uses script ext to lookup. Fixes #265
+ tests
2014-01-16 22:52:39 +00:00
Remy Sharp
483e70283e Pass non-nodemon args *in order* to exec. Fixes #263 2014-01-15 14:11:56 +00:00
Remy Sharp
727e2cc853 Better nodemon cli slurping.
Now (like 0.x nodemon) nodemon will look for it's arguments in all the cli args - including *after* the user script. But additionally, if the user uses the `--` flag, nodemon will stop eating arguments, and pass them all to the user script.
2014-01-09 12:42:13 +00:00
Remy Sharp
df6219c897 Making nodemon options consistent with CLI args 2014-01-09 12:41:30 +00:00
sainaen
65a313d1b6 Add support of --harmony* flags passing to node 2013-12-30 11:52:13 +00:00
Remy Sharp
9ef2ccdd45 more coffeescript windows support 2013-12-15 14:17:40 +00:00
Remy Sharp
c5ca0253be More coffeescript tests passing on windows 2013-12-15 14:15:33 +00:00
Remy Sharp
3f9a0034d0 Better coverage of cli/parse lib 2013-12-11 16:18:06 +00:00
Remy Sharp
4f5593d439 Fix nodemon.config.required flag, and expose config
For when nodemon is required in to projects like grunt.
2013-12-11 16:17:26 +00:00
Remy Sharp
9a86e7bfff Fixed cli parser so that it add watch, ignore, etc 2013-10-29 18:33:24 +00:00
Remy Sharp
5293f08740 fixed parse test expectation 2013-08-07 23:51:53 +01:00
Remy Sharp
56663f5ab4 Trying to simplify the chain of nodemon process
Making it so lib/cli/ can just spew out options, and make it easier to test against too.
2013-08-07 23:15:41 +01:00
Remy Sharp
c5f2bee160 Testing the exec rules and the parser
Still lots to do, but taking a very code, test, code, test, test, test, code, test cycle.
2013-08-05 22:55:12 +01:00