Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can use one of: </p> <ul> <li><a href="http://gruntjs.com/api/grunt.file#grunt.file.expand" rel="nofollow" title="grunt.file.expand">grunt.file.expand</a></li> <li><a href="http://gruntjs.com/api/grunt.task#grunt.task.normalizemultitaskfiles" rel="nofollow" title="grunt.task.normalizemultitaskfiles">grunt.task.normalizemultitaskfiles</a></li> </ul> <p>Example (simplified):</p> <pre><code>module.exports = function( grunt ) { "use strict"; var util = require('util'); grunt.initConfig({ pkg: grunt.file.readJSON("package.json") }); grunt.registerTask('default', ['normalizeMultiTaskFiles', 'expand']); grunt.registerTask('normalizeMultiTaskFiles', function(pattern) { var result = grunt.task.normalizeMultiTaskFiles(['./public/**/*']); console.log(util.inspect(result[0].src)); }); grunt.registerTask('expand', function() { var result = grunt.file.expand(['./public/**/*']); console.log(util.inspect(result)); }) }; </code></pre> <p>Output:</p> <pre><code>Running "normalizeMultiTaskFiles" task [ './public/css', './public/css/main.css', './public/index.html', './public/js', './public/js/file1.js', './public/js/file2.js', './public/js/file3.js', './public/js/index.js', './public/js/lib', './public/vendor', './public/vendor1.js', './public/vendor2.js' ] Running "expand" task [ './public/css', './public/css/main.css', './public/index.html', './public/js', './public/js/file1.js', './public/js/file2.js', './public/js/file3.js', './public/js/index.js', './public/js/lib', './public/vendor', './public/vendor1.js', './public/vendor2.js' ] </code></pre>
 

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