0.0.3 • Published 8 years ago

gulp-pipelog v0.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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.

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago

0.0.0

8 years ago