Commit Graph

976 Commits

Author SHA1 Message Date
Martin Dimitrov
10ded94cd7 fix: fixed an issue where we tried to resolve null as path 2017-12-15 14:14:17 +00:00
Remy Sharp
14fcf94404 docs: update issue template
[skip ci]
2017-12-15 08:53:04 +00:00
Remy Sharp
f8a5abe258 feat: watch script regardless of extension
Fixes the issue where express is a js based project, but the executable
is `www`, so it misses on the match. So now nodemon will watch for
matching extensions but *also* the script the user gave.

Fixes #461

Note that this can't handle the situation where npm is used to run `node
./bin/www` as nodemon can't split out a package script command.
v1.13.0
2017-12-15 08:46:11 +00:00
Remy Sharp
30f999a06c feat: support SIGHUP to restart nodemon
Also small linting tweaks and typos in comments.

Fixes #393
2017-12-15 08:46:01 +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
fd961d6053 fix: defensive check on accessing cmd.args v1.12.7 2017-12-13 22:17:13 +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
Remy Sharp
d9e93ad367 fix: support node arguments again
If node is being passed any arguments (before the script) then use
spawn instead of fork.

Fixes #1161
2017-12-13 21:08:33 +00:00
Remy Sharp
9f8defc089 docs: :add syntax highlight + contributors
Closes #1155

[skip]
2017-12-13 13:30:00 +00:00
Remy Sharp
f52615c0f7 fix: only use fork if node>4 v1.12.6 2017-12-13 13:08:05 +00:00
Remy Sharp
2d4ce033bb docs: update faq on issue #1124 2017-12-12 18:06:49 +00:00
Remy Sharp
62a361cfdb fix: use fork child node processes
* heisian-master:
  fix: get tests to pass
  fix: travis CI build before-install
  test: fork child node processes
2017-12-12 18:00:16 +00:00
Remy Sharp
0628f263d3 chore: merge heisian-master
* 'master' of https://github.com/heisian/nodemon:
  fix: get tests to pass
  fix: travis CI build before-install
  test: fork child node processes
2017-12-12 17:59:43 +00:00
Alex
6d760f4f81 fix: restore node 4 min support
* node 4 min
* add node 4 to travis
2017-12-12 17:36:15 +00:00
Remy Sharp
8967c02301 test: only use .npmrc if a non-PR 2017-12-12 15:25:20 +00:00
Timothy Huang
cf923a8a77 fix: get tests to pass 2017-12-06 14:45:17 -08:00
Timothy Huang
3a6b8df9ae fix: travis CI build before-install 2017-12-06 14:45:17 -08:00
Tim
f711fb7889 test: fork child node processes 2017-12-06 14:45:10 -08:00
Remy Sharp
183add9166 test: fix typo in before_install 2017-12-06 19:13:06 +00:00
Remy Sharp
57c14a2b58 test: only add npmrc on master (#1147) 2017-12-06 12:36:41 +00:00
Remy Sharp
6a4fb22602 fix: pass through execArgs from config (#1142)
* fix: pass through execArgs from config

Also updating some deps and linting tweaks

* chore: add message on postinstall

Lost funds from gratipay and codesponsor 😢
v1.12.5
2017-12-05 18:01:55 +00:00
Remy Sharp
18c03f90e8 chore: bump dev deps 2017-12-05 14:59:27 +00:00
Remy Sharp
7dcea48ff4 chore: update stale bot config 2017-12-05 13:33:33 +00:00
Remy Sharp
17ad4b9f1a docs: include .github templates 2017-12-05 13:08:53 +00:00
Remy Sharp
2e1b496fa3 fix: reduce help output (a teeny bit) v1.12.4 2017-12-04 22:27:16 +00:00
Remy Sharp
71eab1aeeb fix: require node 6 or above in engines v1.12.3 2017-12-04 22:15:21 +00:00
Remy Sharp
2bb587ce0a chore: update semantic release process 2017-12-04 20:50:29 +00:00
Remy Sharp
24a4b84717 feat: disable chokidar globbing on windows (#1140)
Fixes a range of issues, including:

Fixes #1115

* refactor: use Object.assign in place of merge (this will leak to more work)

Since we're now supporting 6 upwards
2017-12-04 20:05:58 +00:00
Remy Sharp
6d57dac0ee fix: bump deps and fix tests for local dev (#1139)
Upgraded tests for node 8
2017-12-04 14:56:44 +00:00
Jay Beavers
5a89df6471 fix: Support for .mjs es6 modules (#1138) 2017-12-04 14:55:16 +00:00
Aalex Gabi
9b6c786fd1 fix: sync help.txt to available options 2017-12-04 14:54:36 +00:00
t__hos
0b1bf131a5 docs: update faq for -c option
Add quotations for -c option

Otherwise the terminal cannot tell whether `--exitcrash` is an option for `nodemon` or `forever`, causing it to fail to start
2017-12-04 14:53:58 +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
Remy Sharp
d0c515a680 chore: Merge branch 'AverageMarcus-fix/810'
* AverageMarcus-fix/810:
  fix: Add support for multi-level filenames
  test: Test support for multi-level filenames
2017-12-04 14:37:53 +00:00
Remy Sharp
5b990b2830 chore: merge branch 'fix/810'
* 'fix/810' of https://github.com/AverageMarcus/nodemon:
  fix: Add support for multi-level filenames
  test: Test support for multi-level filenames
2017-12-04 14:37:27 +00:00
Remy Sharp
af54f6408c docs: trying a new position
Will track over the next 30-60 days.
2017-11-03 16:35:53 +00:00
Marcus Noble
29a9a449d5 fix: Add support for multi-level filenames 2017-10-08 16:19:47 +01:00
Marcus Noble
ff935cae7f test: Test support for multi-level filenames 2017-10-08 16:02:15 +01:00
Rigin Oommen
07e55cc35d docs: update FAQ with added platform documentation
The changes i proposed isworks fine with linux and mac
2017-09-20 09:48:15 +01:00
Eric Berry
4391edebc6 docs: Reposition Code Sponsor (#1090)
By having the sponsor embed code at the bottom, it ends up being more effective to help fund the project.
2017-09-15 12:28:19 +01:00
GerA
469fa80aa7 fix: crash when passing argument to node (windows)
Fixes #1095
2017-09-15 07:40:25 +01:00
Remy Sharp
6a4803d7b6 test: skip a test 2017-09-04 20:41:47 +01:00
Remy Sharp
32aed42f7f chore: linting errors 2017-09-04 20:35:56 +01:00
Remy Sharp
f6a8b3d1e4 chore: update test envs 2017-09-04 20:26:29 +01:00
Remy Sharp
205ba1ba02 chore: tidy commit lint rules 2017-09-04 20:26:29 +01:00
Remy Sharp
2af639102d fix: add commit lint 2017-09-04 20:26:29 +01:00
Remy Sharp
8cf51286e8 docs: update small formatting issue 2017-09-04 20:26:29 +01:00
Steven Patrick
0e4b310c1c Fix: nodemon can't read config files encoded with BOM e.g. UTF-8-BOM #1031 2017-09-04 20:26:28 +01:00
Rich Hodgkins
fb5da380c8 feat: nodemonConfig support in package.json
* feat: support using ‘nodemonConfig’ in package.json

Implements loading configuration options from the `nodemonConfig` value in the package.json, nodemon.json is still preferred before looking at the new option.
Also includes tests.

Closes #873

* docs: update for using ‘nodemonConfig’ in package.json

Add to both the README and `nodemon --help config`.

#1028
2017-09-04 20:26:17 +01:00
Matt Lyons
63e8606748 fix: exit when fail to parse the config file (#921)
Fixes #651
2017-09-04 20:22:21 +01:00