var gulp = require('gulp'),
rename = require('gulp-rename'),
bowerFiles = require('main-bower-files')();
gulp.task('default', function(){
return gulp.src(bowerFiles,{base:'./bower_components'})
.pipe(rename(function(path){
path.dirname = path.dirname.split('/').shift()
}))
.pipe(gulp.dest('./public'))
})