-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Hello,
I posted a question a couple of days ago, but can see that it's now closed:
#46
I changed my code according to the suggestion there, it now reads:
Here's the code:
var gulp = require('gulp');
var CSS_PATH = 'public/css/*/.css';
var DIST_PATH = 'public/dist';
gulp.task('lintcss', function(cb) {
var fs = require('fs');
var output = '';
gulp.src(CSS_PATH)
.pipe(csslint())
.pipe(csslint.reporter('junit-xml', {logger: function(str) { output += str; }}));
fs.writeFile(DIST_PATH + 'junit.xml', output, cb);
});But i now get an error 'Error: Invalid reporter'
I took the code original from:
https://www.npmjs.com/package/gulp-csslint
But obviously something still isn't right.
All I really want to do is to output the report as xml to a file.
Best Regards,
Steve
Metadata
Metadata
Assignees
Labels
No labels