micalexander
8/5/2013 - 2:03 AM

grunt:copyto:snippet

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');