Skip to content

Instantly share code, notes, and snippets.

@micalexander
Created August 5, 2013 02:03
Show Gist options
  • Select an option

  • Save micalexander/6152976 to your computer and use it in GitHub Desktop.

Select an option

Save micalexander/6152976 to your computer and use it in GitHub Desktop.
grunt:copyto:snippet
copyto: {
stuff: {
files: [
{cwd: 'src/Dev/TaskBundle/Resources/public/', src: ['**/*'], dest: 'web/bundles/devtask/'}
],
options: {
processContent: function(content, path) {
// do something with content or return false to abort copy
return content;
},
// array of ignored paths, can be specific files or a glob
ignore: [
'stuffdir/**/*.bak',
'stuffdir/dontcopyme.txt',
// ignore both a directory and it's contents (brace expansion)
'stuffdir/somedir{,/**/*}'
]
}
}
},
grunt.loadNpmTasks('grunt-copy-to');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment