Logger plugin for gulp for logging stream stages, transformations and progress.
$ npm install gulp-logger --saveSomething like this:
var gulp = require('gulp'),
gzip = require('gulp-gzip'),
logger = require('gulp-logger');
gulp.task('gzip', function () {
gulp.src('**/*.js')
.pipe(logger({
before: 'Starting Gzip...',
after: 'Gzipping complete!',
extname: '.js.gz',
showChange: true
}))
.pipe(gzip());
});And a folder structure like this:
files-to-stream/
|- baz/
| |- file.js
| `- wat.js
|
|- foo.js
|- bar.js
`- derp.js
Would give you this:
The message you want to show before the chunks are shown.
The message you want to show after the chunks are shown.
The message you want to show before each chunk.
The message you want to show after each chunk.
A constant value to prefix to each filename in the chunk.
A constant value to suffix to each filename in the chunk.
A constant value to set as the extension for each filename in the chunk.
A constant value to set as the basename for each filename in the chunk.
A constant value to set as the dest for each filename in the chunk.
Whether or not to turn off colors on the output.
How you want the path of the chunk to show.
'rel': Relative path'abs': Absolute path'name': Filename