🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

gulp-file-activity

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-file-activity

Display activity of gulp streams as they are passed around

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

gulp-file-activity

Display activity of files as they are passed around

Install

$ npm install --save-dev gulp-file-activity

Usage

Here is an example using Watchify:

var gulp = require('gulp');
var source = require('vinyl-source-stream');
var watchify = require('watchify');
var streamify = require('gulp-streamify');
var activity = require('gulp-file-activity');

var createBundler = function () {
    return browserify('./src/index.js');
};

var rebundle = function (bundler) {
    var starting = new Date();

    return bundler.bundle()
        .pipe(source('index.js'))
        .pipe(gulp.dest('dist'))
        .pipe(streamify(activity({ since: starting })))
    ;
}

gulp.task('scripts', function() {
    var bundler = createBundler();
    return rebundle(bundler);
});

gulp.task('watch', function () {
    var bundler = watchify(createBundler());
    var onUpdate = function () {
        return rebundle(bundler);
    };
    bundler.on('update', onUpdate);
    return onUpdate();
});

API

activity(options)

options

gzip

Type: boolean Default: false

Displays the gzipped size instead.

title

Type: string Default: none

Add a title to the output.

since

Type: Date Default: none

For displaying some elapsed time.

License

MIT

Keywords

gulpplugin

FAQs

Package last updated on 30 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts