Nodemon ignore folder using regular expressions

In the Nodemon ignore file, I want to selectively ignore folders from my main folder.

My folder structure:

-modules
  -accounts
 -client
     -angularfiles
        -accounts.js
 -repository
      -accountrepository.js    
-bankbranch
 -client
     -angularfiles
         -bankbranch.js
 -repository
      -bankbranchrepository.js    

In this hierarchy, I want to ignore the file paths "modules / accounts / client / angularfiles /" & "Modules / bankbranch / client / angularfiles /"

I have many more such modules. In this case, I tried to write this regex to ignore it based on the expression:

/modules\\\w*\\client\\angularfiles\\*/

Using an online regular expression match, it matches this way:

\AngularJSApp\modules\accounts\client\angularfiles\bankbranch.js 

but nodemon reloads when the file changes in the client \ corner file.

+4
source share
1 answer

Nodemon , .

:

nodemon --ignore 'modules/**/client/angularfiles/*'
+5

Source: https://habr.com/ru/post/1529929/


All Articles