Skip to main content
Globs are used throughout momentic.config.yaml (e.g. include, exclude) to choose which .test.yaml and .module.yaml files Momentic discovers.

Patterns

PatternMatches
*All files in the current directory
**All files and subdirectories recursively
some-dir/The some-dir directory and its contents
some-dirA file named some-dir, or the some-dir directory
some-dir*Files and directories starting with some-dir
*.jsAll .js files in the current directory
!patternNegates a glob (automatically appends /**)

Examples

PatternMatches
dist/**Everything under dist/
dist/dist/ and its contents
distA file named dist, or the dist directory
dist/some-dir/**Everything under dist/some-dir/
!distIgnores dist/ and its contents
dist*Files and directories starting with dist
dist/*.js.js files directly in dist/
!dist/*.jsIgnores .js files directly in dist/
dist/**/*.jsAll .js files under dist/ recursively
../scripts/**Everything under a sibling scripts/ directory