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
Ivan Keliukh
c279760c8e
test: make sigint test to actually check child pid ( #1656 )
2020-01-22 16:05:57 +00:00
Aurélio A. Heckert
7d6c1a88a1
fix: Replace jade references by pug
...
close #1595
2019-10-15 19:27:50 -04:00
Aaron Jensen
521eb1e49d
fix: restart on change for non-default signals ( #1409 ) ( #1430 )
...
Fixes #1409
2018-11-05 11:23:14 +00:00
Damián Nohales
5a47a32f79
fix: properly pass options to chokidar
2018-08-29 18:47:51 +01:00
Remy Sharp
0f39b2e349
fix: make it possible for windows to checkout ( #1270 )
...
Fixes #1255
2018-02-27 16:43:09 +00:00
Remy Sharp
88954455be
fix: make watch & ignore relative ( #1253 )
...
* docs: add sponsors
[skip ci]
* fix: make watch & ignore relative
Fixes #1246
* fix: relative parent watching and ignore
* chore: lint
* test: fix bail on options
2018-02-15 21:57:47 +00: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
Remy Sharp
03ef996d29
chore: Merge branch 'fix/package-start-with-env'
2015-09-19 10:25:50 +01:00
Kevin Woo
cde21fb4de
test: added dotfile tests
2015-09-15 21:46:36 -07:00
Remy Sharp
5e07bfef85
fix: supporting env values in package.start
...
Before it was trying to parse the value in .start, when in fact, the entire value represents the `cmd`.
Fixes #621
Fixes #615
Fixes #577
Fixes #513
2015-09-12 22:51:02 +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
Samuel Reed
15751fe432
Fix nodemon.json's 'quit' listener and add test.
2015-03-02 18:44:21 +07:00
Remy Sharp
51f825d341
Add test to check if passed opts are priority
...
Currently failing due to bug in code - THIS IS MY PLAN!
2015-01-20 14:08:11 +00:00
Remy Sharp
5016a38b0a
Fixed crazy restart loop
...
Ensure we don't restart when the last find was 0 seconds ago
2015-01-19 17:07:17 +00:00
Remy Sharp
1f002f61d3
Blinking nodemon.json file was missing from git!
2015-01-16 21:56:49 +00:00
Remy Sharp
3b8cea480a
Fixing tests
...
- Make scripts output expected content (rather than the bash user!)
- Reduce noise
- Ensure the exec it quoted appropriately
2015-01-16 09:49:15 +00:00
Remy Sharp
299b1a698a
Merge branch 'master' into fix/exec-escapes
2015-01-16 09:40:59 +00:00
Remy Sharp
9651ab88b0
Escape exec *args* only if space
...
This matches npm's functionality. It's also been tested against the "some\"file" test, etc. It's hard too...and late.
2015-01-14 22:45:45 +00:00
Remy Sharp
8d08b183a1
Fixed nodemon require reset fully
...
And related events test
2015-01-07 21:45:14 +00:00
Remy Sharp
d7d484e7f9
Few tests
2015-01-01 20:49:57 +00:00
Remy Sharp
ca22d8d835
Merge branch 'master' into feature/pre-post-events
2014-12-09 15:01:07 +00:00
Remy Sharp
80e8f7598f
Early testing for event tests
2014-12-09 11:09:29 +00:00
Remy Sharp
93113c9d70
Better tests for scripts with spaces
2014-12-08 18:31:25 +00:00
Remy Sharp
7db0453349
Merge branch 'fail-start-script-overruling-nodemonjson' of https://github.com/novemberborn/nodemon into novemberborn-fail-start-script-overruling-nodemonjson
2014-12-05 15:23:59 +00:00
Remy Sharp
96d7b4295f
remove logging in fixtures
2014-12-05 11:31:42 +00:00
Remy Sharp
21d52d0045
Initial test to read watch count
2014-12-05 09:48:52 +00:00
Remy Sharp
96bd4b3e79
Fixed tests on Mac
...
Specifically race conditions where the child process was being left running still
2014-12-04 22:07:34 +00:00
Mark Wubben
37491255c0
add breaking test for package.scripts.start overruling nodemon.json
2014-12-04 17:18:35 +00:00
Remy Sharp
77160f4593
Packages for testing package.scripts support
2014-05-28 12:48:04 +01:00
Remy Sharp
b4e45348aa
Fix #336 . Relative paths are resolved in rules.
2014-05-12 17:39:18 +01:00
Remy Sharp
38b349fbb8
Attempting to replicate bug
2014-01-27 17:10:10 +00: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
6a312a3a77
Relative path tests
2014-01-17 22:37:51 +00:00
Remy Sharp
ea5e925716
Patch to fix directory/* being ignored in ignore rule
2014-01-17 17:54:36 +00:00
Remy Sharp
bfc4ac1c4d
Required nodemon accepts env to pass to spawned process
...
See https://github.com/ChrisWren/grunt-nodemon/pull/29 for example/request
2014-01-15 14:07:36 +00:00
Remy Sharp
a5f81bd883
Fixed old nodemon ignore file support
2014-01-05 14:59:58 +00:00
Remy Sharp
30a4a192f5
Docs and 1.0.0 release. Whoop whoop!
2013-12-29 22:50:02 +00:00
Remy Sharp
b4b3d90c61
fixtures for legacy nodemonignore files
2013-12-11 15:16:17 +00:00
Remy Sharp
999f87eeda
Support for execMap #195 and tests
2013-12-10 13:29:35 +00:00
Remy Sharp
abc27cd5ca
Correct signal passing. Fixes #232 .
...
Also more linting, tweaks to FAQ & contributing and added .jshint file.
Also adds test for signal test (though needs mocha to timeout at 15 seconds!)
2013-12-10 00:06:25 +00:00
Remy Sharp
48855d051f
More test coverage
2013-12-05 16:29:58 +00:00
Remy Sharp
90f3bcd891
Test help
2013-12-05 09:45:53 +00:00
Remy Sharp
59e0135eb5
More test off of lib
2013-12-03 13:37:40 +00:00
Remy Sharp
21ba61476b
trying to get nodemon start tests to pass on linux - problems with fs.watch + touch
2013-11-20 22:07:44 +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
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
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