You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 0 - Watch only the project's own files and linked modules (via `npm link`)
43
+
* 1 (_Default_) - Watch all first level dependencies
44
+
*`--fork` - Hook into child_process.fork
45
+
*`--graceful_ipc <msg>` - Send 'msg' as an IPC message instead of SIGTERM for restart/shutdown
46
+
*`--ignore` - A file whose changes should not cause a restart
47
+
*`--notify` - Display desktop notifications
48
+
*`--poll` - Force polling for file changes (Caution! CPU-heavy!)
49
+
*`--respawn` - Keep watching for changes after the script has exited
50
+
*`--timestamp` - The timestamp format to use for logging restarts
51
+
*`--vm` - Load files using Node's VM
44
52
45
53
By default node-dev will watch all first-level dependencies, i.e. the ones in
46
54
the project's `node_modules`folder.
@@ -76,13 +84,16 @@ Usually node-dev doesn't require any configuration at all, but there are some
76
84
options you can set to tweak its behaviour:
77
85
78
86
*`clear` – Whether to clear the screen upon restarts. _Default:_`false`
87
+
*`dedupe` – Whether modules should by [dynamically deduped](https://www.npmjs.org/package/dynamic-dedupe). _Default:_`false`
88
+
*`deps` – How many levels of dependencies should be watched. _Default:_`1`
89
+
*`fork` – Whether to hook into [child_process.fork](http://nodejs.org/docs/latest/api/child_process.html#child_process_child_process_fork_modulepath_args_options) (required for [clustered](http://nodejs.org/docs/latest/api/cluster.html) programs). _Default:_`true`
90
+
*`graceful_ipc` - Send the argument provided as an IPC message instead of SIGTERM during restart events. _Default:_`""` (off)
91
+
*`ignore` - A single file or an array of files to ignore. _Default:_`[]`
79
92
*`notify` – Whether to display desktop notifications. _Default:_`true`
93
+
*`poll` - Force polling for file changes, this can be CPU-heavy. _Default:_`false`
94
+
*`respawn` - Keep watching for changes after the script has exited. _Default:_`false`
80
95
*`timestamp` – The timestamp format to use for logging restarts. _Default:_`"HH:MM:ss"`
81
96
*`vm` – Whether to watch files loaded via Node's [VM](http://nodejs.org/docs/latest/api/vm.html) module. _Default:_`true`
82
-
*`fork` – Whether to hook into [child_process.fork](http://nodejs.org/docs/latest/api/child_process.html#child_process_child_process_fork_modulepath_args_options) (required for [clustered](http://nodejs.org/docs/latest/api/cluster.html) programs). _Default:_`true`
83
-
*`deps` – How many levels of dependencies should be watched. _Default:_`1`
84
-
*`dedupe` – Whether modules should by [dynamically deduped](https://www.npmjs.org/package/dynamic-dedupe). _Default:_`false`
85
-
*`graceful_ipc` - Send the argument provided as an IPC message instead of SIGTERM during restart events. _Default:_`""` (off)
86
97
87
98
Upon startup node-dev looks for a `.node-dev.json` file in the following directories:
0 commit comments