dtothefp/gulp-yaml-validate

Modifies file types?

Closed this issue · 1 comments

Why my *.yml-files are converted to *.json files after I add this to gulp-process?

Ok, figured it out. I can't pipe it in the middle like this

gulp.src("*.yml")
.pipe(yamllint()).on('error', myHandler('Yaml'))
.pipe(gulp.dest(".."));

...but instead I have to use it without saving the results, in the end like this:

gulp.src("*.yml")
.pipe(gulp.dest(".."))
.pipe(yamllint()).on('error', myHandler('Yaml'));