Remy Sharp
5e88b04eaa
feat: add support for --spawn ( #1249 )
...
* docs: add sponsors
[skip ci]
* feat: add support for `--spawn`
Fixes #1245
* docs: remove "simply"
2018-02-15 21:57:30 +00:00
Remy Sharp
48048aaf12
fix: properly handle --no-update-notifier
2017-12-29 10:54:59 +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
fa64cdcc8a
docs: reduce CLI output and add --help options
...
Also restore missing -L CLI options.
Fixes #1160
2017-12-13 21:55:13 +00:00
Leonard Martin
f3e0c29f15
fix: read config file before defaulting script parameter ( #1110 )
...
If I have a nodemon.json config file with an `exec` property, then this is automatically appended with ` index.js` when running `nodemon` standalone.
I would expect this to be equivalent to running `nodemon --exec "my cmd"` - that is providing an `exec` prevents defaulting of `script` to index.js.
To resolve, move the code which defaults the `script` property when `exec` is undefined to after the config files have been read, so that the behaviour is the same irrespective of whether properties are set in CLI flags or in nodemon.json.
2017-12-04 14:52:23 +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
Danny Raetzsch
fc2bc168b0
feat: support --polling-interval command line arg
2015-11-09 20:34:43 -06: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
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
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
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
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
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
fa7826a2ac
Fixed event binding to nodemon not bus
2015-01-16 17:36:25 +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
fa6d7e5df3
Fixed package config overriding nodemon exec
2014-05-28 14:39:51 +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
c4b3f5beb7
Small lint errors
2014-01-27 15:23:36 +00: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
45950a840f
Added milliseconds support for --delay option, using float and time specifier (ms) values
2014-01-23 10:45:38 -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
8ac5051d95
Allows nodemon to error if non-existent script is passed
2014-01-15 14:12:56 +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
e9416f7cdf
Prevent eating arguments that match files
2014-01-10 12:29:50 +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
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
40aad4d208
Ensure --debug is slupped correctly. Fixes #226 .
2013-12-10 14:11:39 +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
aceee649f3
Fixed #216 . If --exec is used, don't try to detect userScript
...
Also simplified the exec and arguments logic
2013-10-29 20:02:30 +00:00
Remy Sharp
ed040edcee
node 0.6 compat
2013-10-29 18:46:14 +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
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
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
Remy Sharp
5da131dc03
starting the complete rewrite of nodemon in to tiny testable modules
2013-08-01 13:55:23 +01:00