gulp-tap

WebJar for gulp-tap

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

gulp-tap
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

gulp-tap
WebJar for gulp-tap
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/geejs/gulp-tap

Download gulp-tap

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/gulp-tap/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>gulp-tap</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-tap/
implementation 'org.webjars.npm:gulp-tap:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/gulp-tap/
implementation ("org.webjars.npm:gulp-tap:1.0.1")
'org.webjars.npm:gulp-tap:jar:1.0.1'
<dependency org="org.webjars.npm" name="gulp-tap" rev="1.0.1">
  <artifact name="gulp-tap" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='gulp-tap', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "gulp-tap" % "1.0.1"
[org.webjars.npm/gulp-tap "1.0.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.npm : through2 jar [2.0.3,3)

Project Modules

There are no modules declared in this project.

gulp-tap Build Status Coverage Status Dependencies Status

Easily tap into a pipeline.

Install

npm install gulp-tap --save-dev

Uses

Some filters like gulp-coffee process all files. What if you want to process all JS and Coffee files in a single pipeline. Use tap to filter out .coffee files and process them through the coffee filter and let JavaScript files pass through.

gulp.src("src/**/*.{coffee,js}")
    .pipe(tap(function(file, t) {
        if (path.extname(file.path) === '.coffee') {
            return t.through(coffee, []);
        }
    }))
    .pipe(gulp.dest('build'));

What if you want to change content like add a header? No need for a separate filter, just change the content.

tap(function(file) {
    file.contents = Buffer.concat([
        new Buffer('HEADER'),
        file.contents
    ]);
});

If you do not return a stream, tap forwards your changes.

Examples

See Wiki for more examples.

License

The MIT License (MIT)

Versions

Version
1.0.1