Commit Graph

41 Commits

Author SHA1 Message Date
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
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
df166ab870 Merging @gfxmonk's exec tests 2014-12-09 13:35:55 +00:00
Remy Sharp
8e3ba1c662 Fixed string interpolation with array exec 2014-12-09 12:24:50 +00:00
Remy Sharp
93113c9d70 Better tests for scripts with spaces 2014-12-08 18:31:25 +00:00
Remy Sharp
acf4d61c79 Correctly parse exec when there's spaces
Closes #418
Closes #419

This version will handle quoted entities in the exec string or escaped spaces correctly, so the user can run:

--exec '"/bin/my cool app" {{filename}}'

Or

--exec '/bin/my\ cool\ app {{filename}}'

This will work both on the command line and from the API.
2014-12-08 09:16:16 +00:00
Remy Sharp
6adea0e893 Tests to show failing support 2014-12-08 08:31:47 +00:00
Remy Sharp
d97d92f65b Tweak output of tests to see what's failing 2014-12-05 22:44:40 +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
Remy Sharp
8eef00b334 Add new tests for match code and updated for monitor format. 2014-01-05 00:44:56 +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
1fcc30d272 Fixing coffeescript tests for windows 2013-12-15 13:56: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
05e5cecfe7 test for --debug=X 2013-12-11 15:16:32 +00:00
Remy Sharp
999f87eeda Support for execMap #195 and tests 2013-12-10 13:29:35 +00:00
Remy Sharp
9853e089b4 Fixed #118 plus a bunch of jshint fixes 2013-12-04 12:31:37 +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
fcc843cd88 Test confirming fix for #212 2013-10-30 20:23:40 +00:00
Remy Sharp
81eb5effa5 Fixed nodemnon . and nodemon.json loaded before flags set 2013-10-30 20:14:37 +00:00
Remy Sharp
c5aa3680ef Updated tests to read new options location 2013-10-29 18:33:44 +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
9fd778e355 Tests pass. Using process.emit('nodemon:*'), nodemon starts and triggered restart 2013-08-19 22:26:52 +01:00
Remy Sharp
5d44ebb685 still in progress - lots of file laying out 2013-08-19 21:15:20 +01: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
Remy Sharp
3efca971fd Argument parsing, and executable support and tests
Includes simple passing tests, the exec.js has not been tested in detail yet.
2013-08-05 00:11:30 +01:00