mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
Previous the rules weren't matching fully inside of chokidar, requiring that, for instance, node_modules is written as **/node_modules/**. I've also tidied up what's printed in verbose mode, so it doesn't print default ignores, and doesn't print the full path of an ignored directory. This change _also_ fixes notifications from chokidar from user ignored paths (using the `cwd` argument). This should fix #1202
28 lines
796 B
JavaScript
28 lines
796 B
JavaScript
var ignoreRoot = require('ignore-by-default').directories();
|
|
|
|
// default options for config.options
|
|
module.exports = {
|
|
restartable: 'rs',
|
|
colours: true,
|
|
execMap: {
|
|
py: 'python',
|
|
rb: 'ruby',
|
|
// more can be added here such as ls: lsc - but please ensure it's cross
|
|
// compatible with linux, mac and windows, or make the default.js
|
|
// dynamically append the `.cmd` for node based utilities
|
|
},
|
|
ignoreRoot: ignoreRoot.map(_ => `**/${_}/**`),
|
|
watch: ['*.*'],
|
|
stdin: true,
|
|
runOnChangeOnly: false,
|
|
verbose: false,
|
|
signal: 'SIGUSR2',
|
|
// 'stdout' refers to the default behaviour of a required nodemon's child,
|
|
// but also includes stderr. If this is false, data is still dispatched via
|
|
// nodemon.on('stdout/stderr')
|
|
stdout: true,
|
|
watchOptions: {
|
|
|
|
},
|
|
};
|