Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In the currently-in-development version 0.4.0a, the <code>grunt.file.expand</code> method now supports exclusions, and does so in an arguably less complex way than the underlying minimatch matching library. This is possible because <code>grunt.file.expand</code> accepts <em>multiple</em> patterns (whereas minimatch only accepts one).</p> <p>From <a href="http://gruntjs.com/api/grunt.file#grunt.file.expand">the grunt.file.expand documentation</a>:</p> <blockquote> <p>This method accepts either comma separated wildcard patterns or an array of wildcard patterns. Paths matching patterns that begin with ! will be excluded from the returned array. Patterns are processed in order, so inclusion and exclusion order is significant.</p> </blockquote> <p>That means you could specify <code>['/**/*.js', '!**/ignoreme/**']</code> and while the first pattern would add all <code>.js</code> files to the result set, the second pattern would then remove all <code>/ignoreme/</code> files from the result set.</p> <p>Take a look at the <a href="https://github.com/cowboy/grunt/blob/8501765fb7addd073754fabf7a0e779a1a54b122/test/grunt/file_test.js#L60-68">grunt.file.match unit tests</a> if you're really curious.</p> <p>Note that the version of grunt offering this functionality hasn't officially been released, but if you're interested in using it in a project, see the <a href="https://github.com/gruntjs/grunt/wiki/Frequently-Asked-Questions">When will I be able to use in-development feature 'X'?</a> FAQ entry.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload