1151 Commits

Author SHA1 Message Date
Remy Sharp
ac0b55e50a fix: redirect help (#1825)
Fixes: #1807

Allows for nodemon --help > help.txt
v2.0.7
2021-01-06 14:59:30 +00:00
Remy Sharp
6d320b2dab chore: update commitlint (#1824) 2021-01-06 14:59:13 +00:00
Remy Sharp
73d03e6b0d chore: update website code 2021-01-06 14:58:34 +00:00
Remy Sharp
9595d945ef chore: merge
* 'master' of github.com:remy/nodemon:
  fix: postinstall hide message in CI
  chore: change test targets (#1788)
  chore: Switch from JSCS to ESLint
  fix: ignore ./<path> on cwd (#1787)
  fix: runOnChangeOnly=true
2021-01-06 10:41:04 +00:00
Remy Sharp
a12cc4d1e3 chore: update commitlint 2021-01-06 10:39:18 +00:00
XhmikosR
3d2320fa0a fix: postinstall hide message in CI 2020-11-24 19:27:23 +00:00
Remy Sharp
f74f4a2077 chore: change test targets (#1788)
No longer testing in node@8 as of nodemon@2.0.5

Adding node@14 and dropping non-LTS targets (odd versions).
v2.0.6
2020-10-19 19:20:22 +01:00
Antriksh Yadav
66ec7cd414 chore: Switch from JSCS to ESLint 2020-10-19 19:20:05 +01:00
Remy Sharp
03c4ed3b76 fix: ignore ./<path> on cwd (#1787)
Fixes: #1784

This fixes the watch/ignore rules where the config is ignoring
the relative local path of ./ - this fix was in place for the
positive (watch) test but not patched for the negative (ignore).
2020-10-19 19:19:11 +01:00
Chakradhar Palaparthi
7e00a30d31 fix: runOnChangeOnly=true
Fxies issue #1742: corrected run.js, run.test.js, watch.js for the use case runOnChangeOnly=true (#1751)
v2.0.5
2020-10-04 20:37:50 +01:00
Remy Sharp
2967726673 fix: package.main with -- arguments (#1773)
* fix: package.main with -- arguments

Fixes #1758

The combination of using a package.main (which sets the script
position to index zero) and using the -- stop slurp meant that
the arguments had the script appended to the end instead of
prepended to the start. The net result meant that when the script
was forked, it would drop the first user arg.

See diff for details of the fix - a simple check against null.

* fix: protect against missing opts
2020-10-04 16:44:26 +01:00
Josh Woodcock
273d774822 fix: respect env.OPENCOLLECTIVE_HIDE (#1765)
Co-authored-by: Josh Woodcock <josh@spacee.com>
2020-09-17 16:37:47 +01:00
Remy Sharp
6c471af09a chore: update lock file
[skip ci]
2020-05-14 13:32:41 +01:00
Remy Sharp
a74f5dc3ef fix: add funding in package
I'd be prepared to bet the house that npm 7's postinstall block and funding support pretty much kills support. Ah well.
v2.0.4
2020-05-14 12:23:08 +01:00
Dan Dascalescu
43def51ddd docs: Fix run-on sentence (#1704) 2020-05-02 09:01:36 +01:00
Remy Sharp
f18286e46c docs: update issue templates
[skip ci]
2020-04-28 12:11:48 +01:00
Remy Sharp
ee92ee470b test: split require tests v2.0.3 2020-04-08 17:55:50 +01:00
Remy Sharp
33ae6dae33 test: fix failing test when required
I suspect, though not 100% sure, that this test fails because it was
being required and when so, chokidar is already watching and thus fires
before the config is loaded.
2020-04-08 17:55:50 +01:00
snyk-bot
a4490e2156 fix: package.json & package-lock.json to reduce vulnerabilities
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-DOTPROP-543489
2020-04-08 17:55:50 +01:00
Concision
9bd07eb5b0 docs: changed verbose logging and CLI documentation to reflect support single file watch functionality 2020-01-22 16:07:18 +00:00
Ivan Keliukh
c279760c8e test: make sigint test to actually check child pid (#1656) 2020-01-22 16:05:57 +00:00
Remy Sharp
cd45d74593 test: fix fork test
I accidently dropped the part of the test that checks that the script
correctly started 😱
v2.0.2
2019-12-11 14:20:42 +00:00
Remy Sharp
496c3353c4 chore: undo change to spawn code 2019-12-04 16:09:33 +00:00
Remy Sharp
47dfb8be3f fix: pipe stderr correctly
Fixes #1638

This also simplifies the shutdown process by sending the kill signal to
the sub-process - thus ensuring we don't get the weird "User defined
singal" from the shell.

This commit also includes a test to ensure this doesn't happen again.
2019-12-04 15:07:27 +00:00
Remy Sharp
ed91703f08 fix: ubuntu loop waiting for sub processes
Fixes #1633

Multiple parts but all localised to run.js:

- Refactor the kill logic to be simpler
- Consistently use pstree to determine sub process list
- Pipe stderr through nodemon to squash `sh -c` error warning

Bug was caused by waiting on multiple sub processes and if they all
ended the logic would only subtract one from the count list (rather
than the total number).

I've refactored the code so that it doesn't use the `kill -0 <pid>` as
this was a little confusing to read (it's effectively a no op) and
switched to using pstree to test if any sub processes are still running.

The logic for killing the processes has also been refactored to
simplify. Before it would fork the logic based on whether `ps` existed
on the system.

Now it uses the same logic with the exception of the kill signal sent -
when `ps` isn't on the system, we have to send numeric signals (I can't
remember how I found that out, but I do remember it was a painful
process!).

The last part required due to a side effect of the refactor on kill:
when a kill signial is sent to `sh -c` the shell prints a warning.
Details on how to replicate: https://git.io/Je6d0

To squash this, I track if the process is about to be killed (by
flagging the sub process right before the kill function call) and if
there's an error whilst shutdown is in effect, the error is only printed
to nodemon's detailed output (using nodemon -V).
v2.0.1
2019-11-22 13:01:31 +00:00
Radu Micu
9a67f361a0 feat: update chokidar to v3
BREAKING CHANGE:

Massive CPU & RAM consumption improvements. 17x package & deps size reduction.
v2.0.0
2019-11-20 15:16:55 +00:00
Marko Kajzer
6781b40360 docs: add license file 2019-11-20 15:16:55 +00:00
Marcel Kottmann
0e6ba3ce6d fix: wait for all subprocesses to terminate (fixes issue #1476) 2019-11-20 15:16:55 +00:00
Remy Sharp
b58cf7dcfd chore: Merge branch 'master'
[skip ci]

* 'master' of github.com:remy/nodemon:
  fix: Replace `jade` references by `pug`
  chore: test funding.yml change
  chore: update funding
  test: ensure ignore relative paths
2019-11-20 14:55:10 +00:00
Remy Sharp
95a4c092c8 docs: add to faq
[skip ci]
2019-11-20 14:45:24 +00:00
Remy Sharp
3a2eaf7c6a choe: merge master
* refs/remotes/origin/master:
  fix: to avoid confusion like in #1528, always report used extension
  fix: langauge around "watching" (#1591)
  docs: README Grammar (#1601)
2019-11-20 14:25:55 +00:00
Remy Sharp
3d90879f69 chore: add logo to site
[skip ci]
2019-11-20 13:57:43 +00:00
Aurélio A. Heckert
7d6c1a88a1 fix: Replace jade references by pug
close #1595
v1.19.4
2019-10-15 19:27:50 -04:00
Remy Sharp
74c8749bb5 chore: test funding.yml change
[skip ci]
2019-10-11 14:36:45 +01:00
Remy Sharp
c1a8b75822 chore: update funding
[skip ci]
2019-10-11 08:04:45 +01:00
Remy Sharp
d5b98915eb test: ensure ignore relative paths
(when asked)
2019-10-07 18:11:43 +01:00
Tarmo Aidantausta
eead311749 fix: to avoid confusion like in #1528, always report used extension v1.19.3 2019-09-29 11:01:52 +01:00
Remy Sharp
12b66cd492 fix: langauge around "watching" (#1591)
ref: #1583

It was unclear whether it was listing files being watched when in fact
it was the list of directories (plus, make it cleaner)
v1.19.2
2019-09-03 11:54:44 +01:00
Drew Llewellyn
2e6e2c46e0 docs: README Grammar (#1601)
- `less` is used for singular mass nouns
- `fewer` when discussing countable things
2019-09-03 11:53:51 +01:00
Remy Sharp
5124ae9528 Merge branch 'master' of github.com:remy/nodemon
* 'master' of github.com:remy/nodemon:
  chore: adding funding file
  chore: update stalebot
  feat: add message event
  fix: disable fork only if string starts with dash
  feat: add TypeScript to default execPath (#1552)
  fix: Quote zero-length strings in arguments (#1551)
v1.19.1
2019-05-25 19:26:24 +01:00
Remy Sharp
95fa05a1f1 chore: git card
[skip ci]
2019-05-25 19:26:15 +01:00
Remy Sharp
d84f421ef7 chore: adding funding file
[skip ci]
2019-05-23 22:07:50 +01:00
Remy Sharp
13afac22a3 fix: ensure signal is sent to exit event 2019-05-08 15:01:50 +01:00
Remy Sharp
d088cb6e66 chore: update stalebot
[skip ci]
2019-05-08 11:12:13 +01:00
Emily Marigold Klassen
20ccb623c4 feat: add message event
add event to listen to messages coming from the child's ipc events, partially implementing #1519
v1.19.0
2019-05-01 08:05:47 +01:00
Emily Marigold Klassen
886527f1f0 fix: disable fork only if string starts with dash
fixes #1554
2019-05-01 08:05:18 +01:00
Leonardo Dino
64b474e9f3 feat: add TypeScript to default execPath (#1552)
`ts-node` is the standard for running typescript node programs on development mode.

Adding this line will enable everyone with a `tsconfig.json` to have a full-refresh server watching experience. (:
2019-05-01 08:04:44 +01:00
Emily Marigold Klassen
2973afbd26 fix: Quote zero-length strings in arguments (#1551)
If a zero-length string is passed, it does not get properly quoted, and then it is not properly passed to the child process
2019-05-01 08:04:25 +01:00
Remy Sharp
aa41ab2124 fix: hard bump of chokidar@2.1.5 v1.18.11 2019-04-08 21:59:59 +01:00
Remy Sharp
fb0c078013 fix: bump chokidar
Fixes #1522
Fixes #1208

Thanks to @mikemaccana for original PR
v1.18.10
2019-02-08 22:13:49 +00:00