Is it possible to copy files into different folders within one task?
Created by: leftstick
My case was done by Grunt
as following:
copy: {
dev: {
files: [{
expand: true,
cwd: 'bower_components/',
src: ['underscore/underscore.js', 'jquery/jquery.js', 'angular/angular.js', 'angular-route/angular-route.js', 'ng-grid/ng-grid-2.0.8.debug.js'],
dest: 'build/libs/',
flatten: true
}, {
expand: true,
cwd: 'bower_components/',
src: ['ng-grid/ng-grid.css', 'jquery.ui/themes/base/jquery.ui.theme.css'],
dest: 'build/css/',
flatten: true
}, {
expand: true,
cwd: 'bower_components/jquery.ui/themes/base/',
src: ['images/*'],
dest: 'build/css/'
}]
}
}
I am wondering if it is possible to do the same thing with Gulp
? Cause i like the gulp's streaming style, but no idea how to do it?