Commit a1d7571c authored by Philipp Nowinski's avatar Philipp Nowinski
Browse files

[FEATURE] make stylelint the new official QA task; drop scss-lint

parent 689b59d8
......@@ -11,7 +11,10 @@ let gulp = require('gulp'),
buffer = require('vinyl-buffer'),
merge = require('merge-stream'),
filterPattern = ['*', '!**/*.map.min.css'],
lazypipe = require('lazypipe');
lazypipe = require('lazypipe'),
reporter = require('postcss-reporter'),
stylelint = require('stylelint'),
scss = require("postcss-scss");
function processCss() {
let filter = plugins.filter(filterPattern, {restore: true}),
......@@ -105,27 +108,7 @@ gulp.task('css:abovethefold', function() {
gulp.task('css:qa', function() {
return gulp.src([settings.getPath() + '/' + config.directories.sass + '/**/*.scss', '!**/*scsslint_tmp*.scss'].concat(config.css.excludeFromQa))
.pipe(plugins.scssLint({
customReport: plugins.scssLintStylish,
maxBuffer: 3000 * 1024
}))
.on('error', function(error) {
plugins.util.log(error);
});
});
gulp.task('css', gulp.series(gulp.parallel('css:sprites', 'css:svg', 'css:qa'), processCss, 'css:abovethefold'));
gulp.task('css:compileAndSync', gulp.series(gulp.parallel('css:sprites', 'css:svg', 'css:qa'), processCssAndSync, 'css:abovethefold'));
var postcss = require('gulp-postcss');
var reporter = require('postcss-reporter');
var stylelint = require('stylelint');
var scss = require("postcss-scss");
gulp.task('lint:css', function() {
return gulp.src([settings.getPath() + '/' + config.directories.sass + '/**/*.scss', '!**/*scsslint_tmp*.scss'].concat(config.css.excludeFromQa))
.pipe(postcss(
.pipe(plugins.postcss(
[
stylelint({
configBasedir: `${process.cwd()}/sgc-core/`
......@@ -137,3 +120,7 @@ gulp.task('lint:css', function() {
}
));
});
gulp.task('css', gulp.series(gulp.parallel('css:sprites', 'css:svg', 'css:qa'), processCss, 'css:abovethefold'));
gulp.task('css:compileAndSync', gulp.series(gulp.parallel('css:sprites', 'css:svg', 'css:qa'), processCssAndSync, 'css:abovethefold'));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment