Skip to content

Instantly share code, notes, and snippets.

@adamstallard
Last active December 12, 2015 02:08
Show Gist options
  • Save adamstallard/4696419 to your computer and use it in GitHub Desktop.
Save adamstallard/4696419 to your computer and use it in GitHub Desktop.
var testFiles = [];
var files = this.data.files2;
if (grunt.utils._.isString(files)) {
files = [files];
}
else{
files = grunt.utils._.flatten(files);
}
grunt.utils._.each(files, function(filePattern){
testFiles = testFiles.concat(grunt.file.expandFiles(filePattern));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment