From f7d4b3bd1377680b76db6315c06e2817e0377fbb Mon Sep 17 00:00:00 2001 From: Pelle Wessman Date: Fri, 29 Sep 2023 20:30:37 +0200 Subject: [PATCH] docs: Document advanced globbing syntax (#2127) When figuring this out me to ignore everything in `node_modules` but my own `@yikesable/` scoped modules: ```json "ignoreRoot": [ "**/node_modules/!(@yikesable)*", "**/node_modules/**/node_modules" ], ``` [skip ci] --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 01f62df5..07accf7a 100644 --- a/README.md +++ b/README.md @@ -169,7 +169,7 @@ nodemon --watch app --watch libs app/server.js Now nodemon will only restart if there are changes in the `./app` or `./libs` directory. By default nodemon will traverse sub-directories, so there's no need in explicitly including sub-directories. -Nodemon also supports unix globbing, e.g `--watch './lib/*'`. The globbing pattern must be quoted. +Nodemon also supports unix globbing, e.g `--watch './lib/*'`. The globbing pattern must be quoted. For advanced globbing, [see `picomatch` documentation](https://github.com/micromatch/picomatch#advanced-globbing), the library that nodemon uses through `chokidar` (which in turn uses it through `anymatch`). ## Specifying extension watch list