gulp.task('styles:verify', function(callback) {
return gulp.src('src/css/**/*.scss')
.pipe(postcss([
cssnext
], { parser: syntax }))
.pipe(gulpStylelint({
failAfterError: false,
reportOutputDir: 'reports/lint',
reporters: [
{formatter: 'verbose', console: true},
{formatter: 'json', save: 'report.json'},
],
debug: true
}));
});
gulp.task('styles:build', function(callback) {
return gulp.src(params.src.style)
.pipe(sourcemaps.init())
.pipe(postcss([
cssnext
], { parser: syntax }))
.pipe(sass().on('error', sass.logError))
.pipe(postcss([
autoprefixer({ browsers: ['last 7 versions'] })
]))
.pipe(rename("styles.css"))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(params.build.dev.css));
});