Commit Graph

237 Commits

Author SHA1 Message Date
Remy Sharp
0c78a9c7a0 test: remove .only 2017-12-23 08:48:46 +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
Dominykas Blyžė
35b86a92e1 test: increase timeout between writing files and starting nodemon
It seems that the filesystem events for creating the files get delayed somehow and arrive after nodemon has started - increasing the timeout prevents a restart before we've actually modified the file
2017-12-20 14:08:53 +00:00
Dominykas Blyžė
b326b4648a test: unlink tmp files after each test 2017-12-20 14:08:53 +00:00
Dominykas Blyžė
c5bf96c051 test: always wait for nodemon.reset() to complete in teardown 2017-12-20 14:08:53 +00:00
Dominykas Blyžė
70a2ec7f3d test: use unlinkSync; validate file exists before unlinking
Sometimes tests fail because the file does not exist (it was possibly not created due to unrelated failure?); Async unlinking might also be causing unnecessary restarts (sometimes test fail with "`done` called twice")
2017-12-20 14:08:53 +00:00
Dominykas Blyžė
84ec156ed0 test: fix hanging test 2017-12-20 14:08:53 +00:00
Dominykas Blyžė
009d868516 feat: support wildcard extension matching 2017-12-20 14:08:32 +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
Tim
f711fb7889 test: fork child node processes 2017-12-06 14:45:10 -08: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 😢
2017-12-05 18:01:55 +00:00
Remy Sharp
17ad4b9f1a docs: include .github templates 2017-12-05 13:08:53 +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
Marcus Noble
ff935cae7f test: Test support for multi-level filenames 2017-10-08 16:02:15 +01:00
Remy Sharp
6a4803d7b6 test: skip a test 2017-09-04 20:41:47 +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
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
Mark Wubben
12b8935232 test: should not match dotfiles unless asked 2016-02-25 21:08:44 +00:00
Mark Wubben
3d19aee29f test: watcher shouldn't crash if ignoreRoot is [] 2016-02-25 21:08:44 +00:00
Remy Sharp
b95469aeb4 test: check non-english chrs don't blow up 2016-02-25 11:14:27 +00:00
Remy Sharp
f5d1a04cc8 test: fix default node ext to js,json
@pensierinmusica this was the fix you needed to pass the tests.
2015-10-25 07:14:49 +00:00
Remy Sharp
e4412268c4 fix: restart on new files added to watched dir
Fixes #664

Also includes tests and quietens the force crash test (though unchanged).
2015-10-19 12:27:54 +01:00
Remy Sharp
3265e92b62 test: fix bad runOnChangeOnly test 2015-10-19 12:27:54 +01:00
Remy Sharp
b875ffc9c0 test: clean string for trigger check 2015-10-19 12:27:53 +01:00
Remy Sharp
0b13116551 refactor: allow dev use of nodemon to show githash
Rather than an arbitrary version string - this will only happen when cloned from git, rather than an npm install. This is entirely for debugging.
2015-10-19 12:27:53 +01:00
Remy Sharp
526811d9b0 fix: make control over ignoreRoot easier
And add documentation and tests
2015-10-19 12:27:53 +01:00
Remy Sharp
fb8580c806 test: fix searching for nodemon message 2015-10-19 12:27:53 +01:00
Remy Sharp
37755457b6 chore: travis faff 2015-10-19 12:27:52 +01:00
Remy Sharp
099496ab61 chore: cleanup stupid merge mess 2015-10-19 12:27:52 +01: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
e8f6d296dc chore: exposure on what is failing in travis 2015-09-19 10:32:37 +01:00
Remy Sharp
f4b12476e1 chore: Merge branch 'master' into feature/disable-colour 2015-09-19 10:29:08 +01:00
Remy Sharp
03ef996d29 chore: Merge branch 'fix/package-start-with-env' 2015-09-19 10:25:50 +01:00
Remy Sharp
12d02b5ec2 test: update tests with new pkg.start 2015-09-19 09:43:12 +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
be3b5b3aee test: updating tests for new pkg.start logic 2015-09-16 10:32:43 +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
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
15b0b88d0f feat: merge ignore rules with defaults
And allow the user to override the defaults from their config
2015-09-12 11:34:28 +01:00
Remy Sharp
7250919e6d fix: restore file count in verbose mode 2015-09-12 11:34:20 +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
6eaf5111ea test: fix version test with semantic release 2015-09-11 23:33:25 +01:00
Remy Sharp
f7a94768f6 refactor: add debugging 2015-09-10 10:38:32 +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
01bc4d0ba1 Merge pull request #515 from STRML/fixQuit
Fix nodemon.json's 'quit' listener and add test.
2015-05-19 13:28:22 +01:00