gulp-pipelog

simple gulp wrapper for pipelog

Usage no npm install needed!

<script type="module">
  import gulpPipelog from 'https://cdn.skypack.dev/gulp-pipelog';
</script>

README

gulp-pipelog

simple gulp wrapper for pipelog

Install

Install it by typing

npm install gulp-pipelog

Usage

var gulp = require("gulp");
var gulpPipelog = require("gulp-pipelog");

gulp.task("myTask",function(){
    var stream = gulp.src(["./test/1.md","./test/2.md","./test/3.md"])
        .pipe(gulpPipelog("this message should appear 3 times","info","forEach"))
        .pipe(gulpPipelog("this warn message should appear once in between the three info messages","warn","atStart"))
        .pipe(gulpPipelog("this OK! message should appear once at the End","ok","atEnd"));
    return stream;
});

The code above produces a console output like this: console.png

Why this wrapper?

This wrapper wraps pipelog:

var gulpPipelog = require("pipelog").stream;
module.exports = gulpPipelog;

The difference between using this module vs pipelog directly is that this one supports setups that rely on the "gulp-*" module naming.