Created
August 5, 2013 02:03
-
-
Save micalexander/6152976 to your computer and use it in GitHub Desktop.
grunt:copyto:snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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