var path = require('path'),
gulp = require('gulp'),
sass = require('gulp-sass'),
rename = require('gulp-rename');
gulp.task('sass', function () {
return gulp.src('**/sass/*.scss')
.pipe(sass())
.pipe(rename(function (filePath) {
filePath.dirname = path.join(filePath.dirname, '../css/');
return filePath;
}))
.pipe(gulp.dest('./'));
});