2015-07-17 12:34:04 +00:00
|
|
|
var gulp = require("gulp");
|
|
|
|
var sass = require("gulp-sass");
|
2016-04-05 14:19:46 +00:00
|
|
|
var rename = require('gulp-rename');
|
2015-07-17 12:34:04 +00:00
|
|
|
|
|
|
|
gulp.task('sass', function () {
|
2016-04-05 14:19:46 +00:00
|
|
|
return gulp.src(['./**/sass/*.scss', '!./node_modules/**/*', '!./m4/**/*'])
|
2015-07-17 12:34:04 +00:00
|
|
|
.pipe(sass({
|
|
|
|
outputStyle: 'nested',
|
|
|
|
precision: 5,
|
|
|
|
onError: function (err) {
|
|
|
|
notify().write(err);
|
|
|
|
}
|
|
|
|
}))
|
2016-04-05 14:19:46 +00:00
|
|
|
.pipe(rename(function (path) {
|
|
|
|
path.dirname += "/../";
|
|
|
|
}))
|
|
|
|
.pipe(gulp.dest('./'))
|
2015-07-17 12:34:04 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
gulp.task('default', ['sass']);
|