momentic
to include.
Pattern | Description |
---|---|
* | Match all files in the directory |
** | Recursively match all files and sub-directories |
some-dir/ | Match the some-dir directory and its contents |
some-dir | Match a file named some-dir or a some-dir directory and its contents |
some-dir* | Match files and directories that start with some-dir , including contents when matching a directory |
*.js | Match all .js files in the directory |
! | Negate the whole glob (automatically applies /** to the end of the defined glob) |
Pattern | Description |
---|---|
dist/** | Match all files in the dist directory, its contents, and all sub-directories |
dist/ | Match the dist directory and its contents |
dist | Match a file named dist or a dist directory, its contents, and all sub-directories |
dist/some-dir/** | Match all files in the dist/some-dir directory and all sub-directories in the current directory |
!dist | Ignore the dist directory and all of its contents |
dist* | Match files and directories that start with dist |
dist/*.js | Match all .js files in the dist directory |
!dist/*.js | Ignore all .js files in the dist directory |
dist/**/*.js | Recursively match all .js files in the dist directory and its sub-directories |
../scripts/** | Up one directory, match all files and sub-directories in the scripts directory |