cowboy/grunt — Issue #56: Using concat to banner all js files
Author: sean-lynch
Created: 2012-03-06 00:04:08+00:00
State: open

I've seen a few example grunt files that use concat to prepend a banner at the top of .js files. For example the Grunt JQuery build file (https://github.com/cowboy/grunt-jquery-example/blob/master/grunt.js):

```
concat: {
'dist/grunt-jquery-example.js': ['', '']
}
```

Is there a way to use concat with a matching wildcard in the `src` and `dest` to banner an arbitrary number of files? For example:

```
concat: {
'dist/*.js': ['', '']
}
```

Tangential question:
Is there a reason that the documentation for concat doesn't include the : [ ] syntax that seems to be used in most grunt files? I'm happy to submit a pull request to the docs with that syntax added if it was just an omission.