Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gulp.task('lint:style', function() {
return gulp.src(STYLE_SRC)
.pipe(csslint())
.pipe(csslint.reporter());
});
gulp.task('lint:style', function() {
return gulp.src(STYLE_SRC)
.pipe(csslint())
.pipe(csslint.reporter());
});
gulp.task('csslint', function(){
gulp.src('./css/*.css')
.pipe(csslint({
'compatible-vendor-prefixes': false,
'box-sizing': false,
'important': false
}))
.pipe(csslint.reporter());
});
gulp.task('lint', function(){
gulp.src('./css/*.css')
.pipe(csslint({
'compatible-vendor-prefixes': false,
'box-sizing': false
}))
.pipe(csslint.reporter());
});
gulp.task('csslint', function() {
return gulp.src('./css/*.css')
.pipe(csslint())
.pipe(csslint.reporter('checkstyle-xml'));
});
gulp.task('check:css', function() {
return gulp.src(config.csslint.src)
.pipe(csslint(config.csslint.csslintrc))
.pipe(csslint.reporter('compact'))
.pipe(csslint.reporter('fail'));
});
gulp.task('check:css', function() {
return gulp.src(config.csslint.src)
.pipe(csslint(config.csslint.csslintrc))
.pipe(csslint.reporter('compact'))
.pipe(csslint.reporter('fail'));
});
exports.sassfixer = function(src, dest) {
var sassOptions = {sourcemap: false, style: 'expanded', noCache: true};
if (global.cfg.os==='osx') {
sassOptions['sourcemap=none'] = true;
}
return gulp.src(src)
//.pipe(debug({verbose: true}))
//.on('error', gutil.log)
.pipe(sass(sassOptions))
.pipe(autoprefixer(global.cfg.autoprefixer))
.pipe(replace(' 0px', ' 0'))
.pipe(csslint('csslintrc.json'))
.pipe(csslint.reporter().on('error',gutil.log))
.pipe(gulp.dest(dest));
};
gulp.task('_makeCss', ['_cleanCss', '_makeConfig'], function(){
var src = global.cfg.pathFwk + global.cfg.loader.folders.www + '**/*.s+(a|c)ss',
dest = global.cfg.pathFwk + global.cfg.loader.folders.www;
var sassOptions = {errLogToConsole: true, indentedSyntax: false};
return gulp.src(src)
.pipe(utils.debugme())
.pipe(sass(sassOptions))
.pipe(autoprefixer({browsers: global.cfg.autoprefixer}))
.pipe(replace(' 0px', ' 0'))
.pipe(csslint(global.cfg.pathFwk + 'csslintrc.json'))
.pipe(csslint.reporter(customReporter))
.pipe(csslint.failReporter())
.pipe(gif(global.cfg.loader.release, cssnano({zindex: false, reduceIdents: false})))
.pipe(gulp.dest(dest))
;
});
linter: function(stream, config){
stream = stream
.pipe(replace(' 0px', ' 0'))
.pipe(csslint('csslintrc.json'))
.pipe(csslint.reporter(cssLintCustomReporter))
.pipe(gif(config.linterForce, csslint.reporter('fail')));
return stream;
},
minifyFile: function(stream){